Word Ladder

A word changes a letter or two per rung, climbing a ladder to the final word. A free, MIT-licensed Remotion text animation.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { WordLadder } from "@/components/remocn/word-ladder";
 
const WordLadderScene = () => (
  <WordLadder words={["idea", "item", "stem", "step", "ship"]} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="WordLadder"
    component={WordLadderScene}
    durationInFrames={186}
    fps={30}
    width={1280}
    height={720}
  />
);

Each word in words replaces the last by changing a letter or two, stepping from the first rung to the last. Pass words as a chain where neighbors differ slightly. It ships in light and dark through the theme prop.

Props12

PropTypeDefault
words
string[]["idea", "item", "stem", "step", "ship"]

Rungs of the ladder, first to last. Neighbours should differ by a letter or two.

rung
number24

Frames between one rung and the next.

stagger
number3

Frames between letters that change on the same rung.

accent
string"#3B5BFD"

Accent color override; falls back to the theme accent.

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.

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; picks the palette.

speed
number1

Playback speed multiplier for the whole timeline.

  • wordsstring[]

    Rungs of the ladder, first to last. Neighbours should differ by a letter or two.

    Default["idea", "item", "stem", "step", "ship"]

  • rungnumber

    Frames between one rung and the next.

    Default24

  • staggernumber

    Frames between letters that change on the same rung.

    Default3

  • accentstring

    Accent color override; falls back to the theme accent.

    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"

  • 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; picks the palette.

    Default"dark"

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1