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.

Installation
$ pnpm dlx shadcn@latest add @remocn/word-stack

Usage

tsx
// 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

PropTypeDefault
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.

    Default17

  • 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.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1