Stripe Mask
Slanted stripes mask a two-sentence bold headline into view. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/stripe-maskUsage
// src/Root.tsx
import { Composition } from "remotion";
import { StripeMask } from "@/components/remocn/stripe-mask";
const StripeMaskScene = () => <StripeMask title="Faster. Every frame." slant={18} />;
export const RemotionRoot = () => (
<Composition
id="StripeMask"
component={StripeMaskScene}
durationInFrames={130}
fps={30}
width={1280}
height={720}
/>
);Slanted stripes sweep in and mask the headline into view, then widen and retract, one line per sentence. Pass title (it breaks after each sentence) and slant; it ships light and dark.
Props12
| Prop | Type | Default |
|---|---|---|
| title | string"Faster. Every frame." Headline. Breaks into a new line after each sentence. | |
| slant | number18 Stripe slant in degrees, leaning right. | |
| stagger | number5 Frames between the three bars as they sweep in. | |
| hold | number10 Frames the full slab holds before it breaks back into bars. | |
| accent | string"#3B5BFD" Accent colour (any CSS colour). | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Oswald" 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. | |
| theme | "dark" | "light""dark" Colour scheme; ships light and dark. | |
| speed | number1 Playback multiplier; above 1 plays faster. | |
- titlestring
Headline. Breaks into a new line after each sentence.
Default
"Faster. Every frame." - slantnumber
Stripe slant in degrees, leaning right.
Default
18 - staggernumber
Frames between the three bars as they sweep in.
Default
5 - holdnumber
Frames the full slab holds before it breaks back into bars.
Default
10 - accentstring
Accent colour (any CSS colour).
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
"Oswald" - 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 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark" - speednumber
Playback multiplier; above 1 plays faster.
Default
1