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.
In Remotion, Unmask Line reveals a monospace line such as Out of stealth. letter by letter through a mask, with no typing cursor, and turns the last word green. Use it for a tech or developer-tool announcement.
$ pnpm dlx shadcn@latest add @remocn/unmask-lineGood 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.
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"