Split Word
A huge word is cut open by a hairline and a second word slides into the gap. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/split-wordUsage
// src/Root.tsx
import { Composition } from "remotion";
import { SplitWord } from "@/components/remocn/split-word";
const SplitWordScene = () => <SplitWord word="Now" insert="Available" accent="#3B5BFD" />;
export const RemotionRoot = () => (
<Composition
id="SplitWord"
component={SplitWordScene}
durationInFrames={126}
fps={30}
width={1280}
height={720}
/>
);word rises in letter by letter, a hairline cuts through its middle, and the two halves slide apart to open an aurora-gradient band where insert sits. The halves then settle back with a small offset. It ships light and dark through theme.
Props12
| Prop | Type | Default |
|---|---|---|
| word | string"Now" The huge word that gets split open. | |
| insert | string"Available" The word revealed inside the gap. | |
| stagger | number3 Frames between letters as the word rises in. | |
| hold | number14 Frames the slit stays wide open before it settles. | |
| accent | string"#3B5BFD" Color of the hairline cut. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| grain | booleantrue Film grain over the scene. | |
| 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. | |
| theme | "dark" | "light""dark" Light or dark ground; ships both. | |
| speed | number1 Playback speed multiplier. | |
- wordstring
The huge word that gets split open.
Default
"Now" - insertstring
The word revealed inside the gap.
Default
"Available" - staggernumber
Frames between letters as the word rises in.
Default
3 - holdnumber
Frames the slit stays wide open before it settles.
Default
14 - accentstring
Color of the hairline cut.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- grainboolean
Film grain over the scene.
Default
true - 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 - theme"dark" | "light"
Light or dark ground; ships both.
Default
"dark" - speednumber
Playback speed multiplier.
Default
1