Unmask Line
A monospace line is unmasked letter by letter, 'Out of stealth.', the last word in green. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/unmask-lineUsage
// src/Root.tsx
import { Composition } from "remotion";
import { UnmaskLine } from "@/components/remocn/unmask-line";
const UnmaskLineScene = () => <UnmaskLine lines={["Out of", "stealth."]} highlight={-1} />;
export const RemotionRoot = () => (
<Composition
id="UnmaskLine"
component={UnmaskLineScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);Dots appear for each letter, breathe, then open into monospace characters line by line, with the chosen line tinted green. Pass lines and highlight (a line index; -1 means the last line); it ships light and dark.
Props12
| Prop | Type | Default |
|---|---|---|
| lines | string[]["Out of", "stealth."] Lines unmasked letter by letter. | |
| highlight | number-1 Index of the line tinted green; -1 is the last line. | |
| openAt | number38 Frame the dots start opening into letters. | |
| stagger | number2.2 Frames between letters opening. | |
| accent | string— Accent colour (any CSS colour). | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme background colour. | |
| fontFamily | string"IBM Plex Mono" Typeface for the copy; keep it monospaced so letters sit on the dot grid. 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. | |
| speed | number1 Playback multiplier; above 1 plays faster. | |
| theme | "dark" | "light""dark" Colour scheme; ships light and dark. | |
- linesstring[]
Lines unmasked letter by letter.
Default
["Out of", "stealth."] - highlightnumber
Index of the line tinted green; -1 is the last line.
Default
-1 - openAtnumber
Frame the dots start opening into letters.
Default
38 - staggernumber
Frames between letters opening.
Default
2.2 - accentstring
Accent colour (any CSS colour).
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme background colour.
- fontFamilystring
Typeface for the copy; keep it monospaced so letters sit on the dot grid. Load the font in your project first.
Default
"IBM Plex Mono" - 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 multiplier; above 1 plays faster.
Default
1 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark"