Unmask Line
A monospace line is unmasked letter by letter from dots, with no typing caret, the last line in green: 'Out of stealth.'. A free, MIT-licensed Remotion text animation.
In Remotion, Unmask Line reveals monospace text such as "Out of stealth." letter by letter through a mask, with no typing cursor, and turns the last line green (by default the single word "stealth."). Use it for a tech or developer-tool announcement.
$ pnpm dlx shadcn@latest add @remocn/unmask-lineHow to build this in Remotion
You don't need a string.slice() typewriter. Install the component and pass the lines:
npx shadcn@latest add @remocn/unmask-lineEach letter starts as a dot on a monospace grid. The dots breathe from frame 18, then from openAt (frame 38) each dot grows into a circular clip-path that uncovers its letter, stagger frames (2.2) apart. Letters sit on the grid by the font's advance width, so keep the font monospaced. The schedule lives in timeline.ts.
Good to know
- Length: 77 frames of motion at 30 fps (154 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,Sequencelengths) 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-fontsfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads IBM Plex Mono itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - Lines: each entry of
linesis its own row, stacked and left-aligned. The default["Out of", "stealth."]renders on two rows. - Green:
highlighttints a whole row, not a single word. The default green is#00C805on the dark theme and#00873Con light; passaccentfor your brand green.
Usage
// 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"
Common questions
How do I unmask a monospace line letter by letter with the last word in green?
Install Unmask Line with npx shadcn@latest add @remocn/unmask-line and put the last word on its own row: lines={["Out of", "stealth."]}. highlight={-1} tints the last row green.
Can it render on a single line?
Yes, pass one entry in lines. The green then goes to that whole row, since highlight picks rows, not words.
Is there a typing cursor?
No. Letters open from dots. For a classic caret, use Typewriter.
Related effects
- Typewriter: classic typing with a cursor.
- Matrix Decode: scrambled characters decode into text.
- Staggered Fade Up: words rise in softly.