Layover
A headline's key word cycles through short stops before landing on the final word. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/layoverUsage
// src/Root.tsx
import { Composition } from "remotion";
import { Layover } from "@/components/remocn/layover";
const LayoverScene = () => (
<Layover from="Write it" word="here." stops={["w", "every"]} to="Plays" />
);
export const RemotionRoot = () => (
<Composition
id="Layover"
component={LayoverScene}
durationInFrames={350}
fps={60}
width={1280}
height={720}
/>
);The from phrase stays while word cycles through each entry in stops and settles on to. Pass from, word, stops and to to tell your own stop-by-stop story. It ships in light and dark through the theme prop.
Props14
| Prop | Type | Default |
|---|---|---|
| from | string"Write it" Phrase that stays in place. | |
| word | string"here." Initial word in the cycling slot. | |
| stops | string[]["w", "every"] Words the slot passes through. | |
| to | string"Plays" Word the line settles on. | |
| leg | number22 Frames for each hop of the word between stops. | |
| hold | number20 Frames the word holds at each stop. | |
| accent | string— Accent color override; falls back to the theme accent. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background color override; falls back to the theme background. | |
| fontFamily | string"Red Hat Display" Typeface for the copy. Load the font 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 for the whole timeline. | |
| theme | "dark" | "light""dark" Ships light and dark; picks the palette. | |
- fromstring
Phrase that stays in place.
Default
"Write it" - wordstring
Initial word in the cycling slot.
Default
"here." - stopsstring[]
Words the slot passes through.
Default
["w", "every"] - tostring
Word the line settles on.
Default
"Plays" - legnumber
Frames for each hop of the word between stops.
Default
22 - holdnumber
Frames the word holds at each stop.
Default
20 - accentstring
Accent color override; falls back to the theme accent.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Background color override; falls back to the theme background.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Red Hat Display" - 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 for the whole timeline.
Default
1 - theme"dark" | "light"
Ships light and dark; picks the palette.
Default
"dark"