Stripe Mask
Slanted stripes mask a two-sentence bold headline into view. A free, MIT-licensed Remotion text animation.
In Remotion, Stripe Mask reveals a bold two-sentence headline through slanted diagonal stripes that wipe it into view one band after another. Use it when a statement should arrive with a graphic, striped reveal instead of a fade.
$ pnpm dlx shadcn@latest add @remocn/stripe-maskGood to know
- Length: 100 frames of motion at 30 fps (200 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 Oswald 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 { StripeMask } from "@/components/remocn/stripe-mask";
const StripeMaskScene = () => <StripeMask title="Faster. Every frame." slant={18} />;
export const RemotionRoot = () => (
<Composition
id="StripeMask"
component={StripeMaskScene}
durationInFrames={260}
fps={60}
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