Indent Steps
Up to five lines rise in, each tabbing one step further right like indented code, then one word lights up. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/indent-stepsUsage
// src/Root.tsx
import { Composition } from "remotion";
import { IndentSteps } from "@/components/remocn/indent-steps";
const IndentStepsScene = () => (
<IndentSteps
lines={["Fork the scene.", "Change the props.", "Render tonight."]}
highlight="tonight"
/>
);
export const RemotionRoot = () => (
<Composition
id="IndentSteps"
component={IndentStepsScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);Each line rises from a mask and tabs one step further right with a small snap and a guide line, with optional line numbers in the gutter. Once the last line lands, the highlight word fills with a gradient. Pass up to five lines; set exit to outdent and slide them out over the last 18 frames. It ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| lines | string[]— Up to five lines, each indented one step more than the last. | |
| highlight | string"tonight" Word or phrase that turns to a gradient at the end; case-insensitive. | |
| lineNumbers | booleantrue Show a mono line-number gutter beside the lines. | |
| exit | booleanfalse Outdent and slide the lines out during the final 18 frames. | |
| stagger | number20 Frames between lines; long lists tighten it so every line lands. | |
| accent | string"#3B5BFD" Color of the guide line that flashes after each tab. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Hanken 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. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Light or dark palette. | |
- linesstring[]
Up to five lines, each indented one step more than the last.
- highlightstring
Word or phrase that turns to a gradient at the end; case-insensitive.
Default
"tonight" - lineNumbersboolean
Show a mono line-number gutter beside the lines.
Default
true - exitboolean
Outdent and slide the lines out during the final 18 frames.
Default
false - staggernumber
Frames between lines; long lists tighten it so every line lands.
Default
20 - accentstring
Color of the guide line that flashes after each tab.
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
"Hanken Grotesk" - 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 - speednumber
Playback speed multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Light or dark palette.
Default
"dark"