Hidden Word
A word is found hidden letter by letter inside a sentence and lifted out as a large italic title. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/hidden-wordUsage
// src/Root.tsx
import { Composition } from "remotion";
import { HiddenWord } from "@/components/remocn/hidden-word";
const HiddenWordScene = () => (
<HiddenWord
text="Every founder deserves a launch video that feels expensive."
word="love"
/>
);
export const RemotionRoot = () => (
<Composition
id="HiddenWord"
component={HiddenWordScene}
durationInFrames={186}
fps={30}
width={1280}
height={720}
/>
);The sentence fades in line by line, the letters of word light up in order inside it, the rest dims, and each lit letter lifts out and flies into place to form a large serif italic word. Pass text (it must contain the letters of word in order, case-insensitive) and word; it ships light and dark through theme.
Props12
| Prop | Type | Default |
|---|---|---|
| text | string"Small teams make their launch film in code and post it by Friday." The sentence, set as editorial body type. | |
| word | string"ship" The word hiding in `text`; its letters are found in order. | |
| stagger | number6 Frames between letters as they lift out of the sentence. | |
| accent | string"#3B5BFD" Color of the lit letters and the empty-slot rule. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Hanken Grotesk" 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
| speed | number1 Playback speed multiplier. | |
- textstring
The sentence, set as editorial body type.
Default
"Small teams make their launch film in code and post it by Friday." - wordstring
The word hiding in `text`; its letters are found in order.
Default
"ship" - staggernumber
Frames between letters as they lift out of the sentence.
Default
6 - accentstring
Color of the lit letters and the empty-slot rule.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Hanken Grotesk" - 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 - theme"dark" | "light"
Ships light and dark.
Default
"dark" - speednumber
Playback speed multiplier.
Default
1