Stripe Mask

Bold statement reveal for Remotion: angled stripes sweep across and uncover a two-sentence headline, merge into one slab, then slide aside into a striped mark.

To have a bold two-sentence statement appear through angled stripes that uncover the text, use Stripe Mask. Three slanted bars sweep in one after another and the headline shows only inside them, then the bars widen into one solid slab, and finally break back into thin stripes that slide aside and park as a mark beside the text. Use it for a punchy claim mid-video, in a clean, sporty style.

Installation
$ pnpm dlx shadcn@latest add @remocn/stripe-mask

How to build this in Remotion

You don't need to animate CSS clip-path: polygon() or mask-image by hand. Install the component and pass the statement:

bash
npx shadcn@latest add @remocn/stripe-mask

The bars are SVG polygons slanted by slant degrees, and the same polygons form a clipPath over a copy of the headline, so the text is visible only inside the stripes. While the bars sweep in from the left over the first 40 frames, the headline drifts the other way, so its letters slide through the windows. Frames 44 to 60 widen the bars into one slab, the slab holds, and from frame 70 to 96 it breaks back into three thin bars that move left and wipe the headline to plain ink. The bars are filled with one gradient in frame space, so they read as windows onto the same beam of light.

Good 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, Sequence lengths) 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-fonts from npm, plus the remocn helpers frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads Oswald itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

Usage

tsx
// 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

PropTypeDefault
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.

    Default18

  • staggernumber

    Frames between the three bars as they sweep in.

    Default5

  • holdnumber

    Frames the full slab holds before it breaks back into bars.

    Default10

  • 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.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

Common questions

How do I reveal a two-sentence statement through angled stripes in Remotion?

Install Stripe Mask with npx shadcn@latest add @remocn/stripe-mask and render <StripeMask title="Faster. Every frame." />. Each sentence goes on its own line. Budget at least 100 frames at 30 fps (200 at 60 fps).

How do I change the angle of the stripes?

slant sets the angle in degrees, 18 by default, leaning right.

Can it reveal a single word?

The headline breaks after each sentence, so a single sentence gives a single line. For one bold word slamming in use Full Bleed Type.

  • Stripe Type: a word sliced into horizontal stripes that slide in from alternating sides.
  • Mask Reveal Up: a soft line-by-line reveal from a mask.
  • Full Bleed Type: huge condensed words slam in one at a time.
  • Embargo Lift: black redaction bars lift off an announcement.