Feature Headline
Feature announcement title for Remotion: a small New pill expands from the left, a headline rises word by word and a short subhead follows, for feature spotlights.
In Remotion, Feature Headline builds a feature announcement scene: a small "New" pill expands from the left, then a headline rises in word by word with a short subhead underneath. Use it as a feature spotlight or a chapter title in a product tour or launch video.
$ pnpm dlx shadcn@latest add @remocn/feature-headlineHow to build this in Remotion
You don't need TransitionSeries, Series or premountFor for this beat. Install the component and pass your copy:
npx shadcn@latest add @remocn/feature-headlineEverything plays in one scene from the schedule in timeline.ts: the pill, each headline word and the subhead are interpolate() calls with an Easing ease-out, clamped at both ends. It exits by itself over the last 12 frames of the composition when exit is on.
Good to know
- Length: 39 frames of motion at 30 fps (78 at 60 fps) with the default props. The demo plays 90 frames, which adds a hold; with
exiton, the exit runs over the composition's last 12 frames, so keep the composition longer than the entrance. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Geist and Geist Mono itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - Line length: the headline is not forced onto one line. It sets at full size on up to two lines, then shrinks to no less than 72% of that size, and lines wrap with balanced lengths. There is no
fontSizeprop;scaleresizes the whole foreground.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { FeatureHeadline } from "@/components/remocn/feature-headline";
const FeatureHeadlineScene = () => (
<FeatureHeadline
tag="New"
label="Captions"
headline="Captions that move with every word."
highlight="every word"
/>
);
export const RemotionRoot = () => (
<Composition
id="FeatureHeadline"
component={FeatureHeadlineScene}
durationInFrames={180}
fps={60}
width={1280}
height={720}
/>
);A pill with a tag and label opens, the headline words rise in turn with highlight in the accent, and the subhead fades in; with exit on, everything lifts away in the last frames of the Sequence. Pass tag, label, headline, highlight and subhead; it ships light and dark through theme.
Props17
| Prop | Type | Default |
|---|---|---|
| tag | string"New" Short badge text inside the pill, such as New | |
| label | string"Captions" Pill label; empty hides the pill | |
| headline | string"Captions that move with every word." Main headline; words rise in one by one | |
| highlight | string"every word" Phrase inside the headline shown in the accent color | |
| subhead | string"31 transcript-driven caption styles, ready to drop into any video." Supporting line under the headline; empty to hide | |
| align | "left" | "center""left" Text alignment: left or center | |
| exit | booleantrue Play an exit animation in the last frames | |
| stagger | number2 Frames between headline words rising. | |
| fontWeight | number500 Weight of the headline. | |
| accent | string"#3B5BFD" Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme's stage color | |
| fontFamily | string"Geist" Typeface for the copy. Geist loads by default; load any other face in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- tagstring
Short badge text inside the pill, such as New
Default
"New" - labelstring
Pill label; empty hides the pill
Default
"Captions" - headlinestring
Main headline; words rise in one by one
Default
"Captions that move with every word." - highlightstring
Phrase inside the headline shown in the accent color
Default
"every word" - subheadstring
Supporting line under the headline; empty to hide
Default
"31 transcript-driven caption styles, ready to drop into any video." - align"left" | "center"
Text alignment: left or center
Default
"left" - exitboolean
Play an exit animation in the last frames
Default
true - staggernumber
Frames between headline words rising.
Default
2 - fontWeightnumber
Weight of the headline.
Default
500 - accentstring
Accent color (any valid CSS color)
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme's stage color
- fontFamilystring
Typeface for the copy. Geist loads by default; load any other face in your project first.
Default
"Geist" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"
Common questions
How do I build a feature announcement in Remotion with a New pill, a headline rising word by word and a subhead?
Install Feature Headline with npx shadcn@latest add @remocn/feature-headline and pass tag, label, headline, highlight and subhead. The pill opens first, the words rise in, then the subhead.
Will a long headline stay on one line?
Not always. It sets on up to two lines at full size and shrinks toward 72% for longer copy. Use a short headline or lower scale for a single line.
Can I turn off the exit?
Yes, set exit={false} and the scene holds on the last frame.
Related effects
- Tracking In: a centered cinematic title with no tag.
- Blur Out Up: a bare text exit.
- Typewriter: a typed headline.
- Feature Trio: three benefit words in one beat.