Word Stack
Caps words push up into a tight poster stack, and the last one turns into a serif gradient italic. A free, MIT-licensed Remotion text animation.
In Remotion, Word Stack pushes five to seven caps words up one at a time into a tight poster stack, and the last word turns into a serif gradient italic. Use it for a manifesto or tagline beat that builds into a poster.
$ pnpm dlx shadcn@latest add @remocn/word-stackGood to know
- Length: 99 frames of motion at 30 fps (198 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotionfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - The letters are drawn from glyph outlines built into the file, so there is no font to load.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { WordStack } from "@/components/remocn/word-stack";
const WordStackScene = () => (
<WordStack words={["Write", "it", "once", "ship", "it", "everywhere"]} />
);
export const RemotionRoot = () => (
<Composition
id="WordStack"
component={WordStackScene}
durationInFrames={280}
fps={60}
width={1280}
height={720}
/>
);Each word pushes in from below on its own beat, and the earlier words in the stack shift up and out to make room. The last word swaps to a serif italic with a gradient sheen that slowly drifts while the poster holds. Pass words as a list of short words; it ships light and dark through theme.
Props10
| Prop | Type | Default |
|---|---|---|
| words | string[]— Words pushed into the stack in order; the last one turns serif italic. | |
| beat | number17 Frames between one word pushing in and the next. | |
| accent | string"#3B5BFD" Accent color mixed into the closing word's gradient. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| 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. | |
- wordsstring[]
Words pushed into the stack in order; the last one turns serif italic.
- beatnumber
Frames between one word pushing in and the next.
Default
17 - accentstring
Accent color mixed into the closing word's gradient.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- 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