Comet Headline
Headline and subhead where a comet streaks in an arc behind each word as it arrives, with one phrase highlighted. A shooting-star title for feature announcements. A free, MIT-licensed Remotion text animation.
In Remotion, Comet Headline delivers a headline word by word while a comet streaks in an arc behind each word as it arrives, then a subhead follows and one phrase stays highlighted. Use it for a feature announcement or hero beat with an eyebrow, a headline and a short subhead.
$ pnpm dlx shadcn@latest add @remocn/comet-headlineHow to build this in Remotion
You don't need @remotion/paths or @remotion/motion-blur for the trails. Install the component and pass your copy:
npx shadcn@latest add @remocn/comet-headlineEach comet is an SVG quadratic curve drawn per word, and the head and tail travel along it with interpolate() over an Easing curve, on a schedule from timeline.ts. Words fly in, cool from the comet color into ink and settle; the highlight phrase then takes the accent.
Good to know
- Length: 81 frames of motion at 30 fps (162 at 60 fps) with the default props. The demo composition plays 120 frames, which adds a hold. 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 Sora (headline and subhead) and Geist Mono (eyebrow) itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. highlightis matched insideheadlinewithout regard to case; pass an empty string for no highlight. The default accent is#3B5BFD.flightsets the frames each word takes to fly in on its arc (26 at 30 fps).
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { CometHeadline } from "@/components/remocn/comet-headline";
const CometHeadlineScene = () => (
<CometHeadline
eyebrow="New in remocn"
headline="Every launch beat, already in orbit."
highlight="in orbit"
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="CometHeadline"
component={CometHeadlineScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);An eyebrow fades in, then the headline words fly in one after another on comet arcs and cool into place, and the subhead follows. Pass eyebrow, headline, highlight and subhead to make it yours; it ships light and dark through theme.
Props15
| Prop | Type | Default |
|---|---|---|
| eyebrow | string"New in remocn" Small label above the headline; empty to hide | |
| headline | string"Every launch beat, already in orbit." Main headline; words arrive one by one | |
| highlight | string"in orbit" Phrase inside the headline shown in the accent color | |
| subhead | string"Reveals, feature heads and stats as drop-in Remotion scenes." Supporting line under the headline; empty to hide | |
| 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"Sora" Typeface for the copy. Sora loads by default; load any other face in your project first. | |
| fontWeight | number500 Weight each headline word settles at after it lands. | |
| flight | number26 Frames each word spends in flight before it lands. | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback speed multiplier | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- eyebrowstring
Small label above the headline; empty to hide
Default
"New in remocn" - headlinestring
Main headline; words arrive one by one
Default
"Every launch beat, already in orbit." - highlightstring
Phrase inside the headline shown in the accent color
Default
"in orbit" - subheadstring
Supporting line under the headline; empty to hide
Default
"Reveals, feature heads and stats as drop-in Remotion scenes." - 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. Sora loads by default; load any other face in your project first.
Default
"Sora" - fontWeightnumber
Weight each headline word settles at after it lands.
Default
500 - flightnumber
Frames each word spends in flight before it lands.
Default
26 - 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 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback speed multiplier
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"
Common questions
How do I make a comet streak in an arc behind each word of a headline?
Install Comet Headline with npx shadcn@latest add @remocn/comet-headline and pass eyebrow, headline, highlight and subhead. Each word arrives on its own comet arc.
Does it need @remotion/paths or motion blur?
No. The arcs are plain SVG curves computed in the component; it installs only remotion and @remotion/google-fonts.
Can I drop the highlight?
Yes, pass highlight="".
Related effects
- Spring Scale In: one short word that pops in.
- Feature Headline: a New tag, a one-line headline and a subhead without trails.
- Italic Speed: a slanted speed word on streak lines.
- Staggered Fade Up: a calm word-by-word fade up.