Word Ladder

Word ladder animation for Remotion: a word changes a letter or two at each step, climbing rung by rung from a start word like idea to a final word like ship.

To animate a word that changes a letter or two at each step until it becomes another word in Remotion, use Word Ladder: the word climbs rung by rung, such as idea → item → stem → step → ship, with the changing letters dropping out and new ones rising in, so an idea visibly becomes a shipped product. Use it for a transformation beat told in a few steps.

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

How to build this in Remotion

You don't have to build a TransitionSeries of words or compute the letter diff yourself. Install the component and pass the rungs:

bash
npx shadcn@latest add @remocn/word-ladder

The words are compared letter slot by letter slot. On each rung only the slots that change animate: an accent mark shows under the slot about to change, the old letter drops, the new one rises, and the word glides to its new width. Letters that stay the same don't move. The schedule in timeline.ts starts a rung every rung frames (24 by default), with stagger frames between letters that change on the same rung, and a poster rule settles under the last word.

Good to know

  • Length: 154 frames of motion at 30 fps (308 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, Sequence lengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads Space Grotesk itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.
  • Words of different lengths: slots are compared by position, so a longer word adds a letter slot at the end and a shorter one empties it, while the word glides to its new width. The ladder reads best when neighbors differ by a letter or two, as in the classic puzzle; the component does not find the chain for you.
  • Brand look: set fontFamily (load the face in your project), accent, ink and background to match your palette.

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={372}
    fps={60}
    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

Common questions

How do I animate a word changing one letter at a time into another word?

Install Word Ladder with npx shadcn@latest add @remocn/word-ladder and pass words as the chain, for example ["idea", "item", "stem", "step", "ship"]. Each step swaps only the letters that differ.

Do all words need the same length?

No. Letters are compared by position; extra slots appear or empty and the word glides to its new width.

How long is it?

154 frames at 30 fps with the default five words (308 at 60 fps). Each extra rung adds about rung frames.

  • Anagram Shuffle: the letters are rearranged into one new word.
  • Ruby Press: unrelated words simply swap.
  • Width Lock: a word swaps through a list while the line keeps its width.