Stack Letters
Letters tumble and stack into place to spell a caps word over a warm gradient. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/stack-lettersUsage
// src/Root.tsx
import { Composition } from "remotion";
import { StackLetters } from "@/components/remocn/stack-letters";
const StackLettersScene = () => <StackLetters word="SHIPPED" accent="#3B5BFD" />;
export const RemotionRoot = () => (
<Composition
id="StackLetters"
component={StackLettersScene}
durationInFrames={270}
fps={60}
width={1280}
height={720}
/>
);Letters drop in one by one and stack into a tower, which rocks and topples; each letter then tumbles and lands in a row that spells the word, ticking a ground rule as it lands. Pass word (a short caps word works best) and accent.
Props12
| Prop | Type | Default |
|---|---|---|
| word | string"STACK" The word to stack; short caps words fit best. | |
| stagger | number8 Frames between letters dropping onto the stack. | |
| hold | number9 Frames the full stack stands before it rocks and topples. | |
| accent | string"#3B5BFD" Color of the landing ticks on the ground rule. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Space Grotesk" Typeface for the copy. Load the font in your project first. | |
| 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" Color scheme; ships dark and light. | |
| speed | number1 Playback multiplier for the whole timeline. | |
- wordstring
The word to stack; short caps words fit best.
Default
"STACK" - staggernumber
Frames between letters dropping onto the stack.
Default
8 - holdnumber
Frames the full stack stands before it rocks and topples.
Default
9 - accentstring
Color of the landing ticks on the ground 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
"Space Grotesk" - 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"
Color scheme; ships dark and light.
Default
"dark" - speednumber
Playback multiplier for the whole timeline.
Default
1