Comet Headline
A headline and subhead arrive while a comet streaks arcs behind each word, with one phrase highlighted. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/comet-headlineUsage
// 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. Load the font 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. Load the font 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"