A to Z
An alphabet gag where a big letter column rolls from A to Z and lands on a final entry. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/a-to-zUsage
// src/Root.tsx
import { Composition } from "remotion";
import { AToZ } from "@/components/remocn/a-to-z";
const AToZScene = () => (
<AToZ
entries={["animations.", "brand fonts.", "captions."]}
finale="zero lock-in."
connector="is for"
/>
);
export const RemotionRoot = () => (
<Composition
id="AToZ"
component={AToZScene}
durationInFrames={165}
fps={30}
width={1280}
height={720}
/>
);A huge letter column and a text column roll together: each entry shows its first letter with the connector, for example "A is for any aspect ratio.", ticking through the list. After the last entry the letters flick through the gap to the finale, and a slower roll lands on it. Pass entries in alphabetical order, plus finale and connector; it ships light and dark through theme, and the pacing stretches to fit the composition's duration (128 frames at the default 165).
Props13
| Prop | Type | Default |
|---|---|---|
| entries | string[]DEFAULT_ENTRIES Items in alphabetical order; each one's first letter drives the big column. | |
| finale | string"zero lock-in." Last entry, rolled in after the letters flick through to its letter. | |
| connector | string"is for" Short phrase between the letter and each entry. | |
| accent | string— Field color in dark, letter color in light; defaults to orange. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage color, or `"transparent"` to composite over other layers. | |
| fontFamily | string"Unbounded" Typeface for the copy. Load the font in your project first. | |
| stagger | number2 Frames between the wrapped lines of an entry as it rolls. | |
| roll | number7 Frames each letter and entry takes to roll in. | |
| 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. | |
| speed | number1 Playback speed multiplier. | |
| theme | "dark" | "light""dark" Ships light and dark. | |
- entriesstring[]
Items in alphabetical order; each one's first letter drives the big column.
Default
DEFAULT_ENTRIES - finalestring
Last entry, rolled in after the letters flick through to its letter.
Default
"zero lock-in." - connectorstring
Short phrase between the letter and each entry.
Default
"is for" - accentstring
Field color in dark, letter color in light; defaults to orange.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage color, or `"transparent"` to composite over other layers.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Unbounded" - staggernumber
Frames between the wrapped lines of an entry as it rolls.
Default
2 - rollnumber
Frames each letter and entry takes to roll in.
Default
7 - 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 - speednumber
Playback speed multiplier.
Default
1 - theme"dark" | "light"
Ships light and dark.
Default
"dark"