Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.2 KB
Raw Blame
---
title: Stripe Mask
description: "Slanted stripes mask a two-sentence bold headline into view"
component: stripe-mask
vibe: clean
length: 100
useWhen:
  - "A bold two-sentence statement that should be revealed through slanted stripes."
  - "A punchy mid-video claim in a clean, sporty style."
avoidWhen:
  - "You want a single bold word slamming in — use `full-bleed-type`."
  - "You want a soft reveal, not stripes — use `mask-reveal-up`."
askedAs:
  - "slanted stripes reveal headline"
  - "diagonal bars uncover text"
  - "I want a two-sentence bold statement revealed through angled stripes"
  - "punchy mid-video claim appearing behind slanted blinds"
  - "graphic reveal with a striped mask opening onto text"
  - "viewer sees a statement slice into view in bold diagonal slats"
---

<ComponentPreview name="stripe-mask" />

<InstallBlock name="stripe-mask" />

## 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={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.

<PropsTable title="Props"
  rows={[
    {
      name: "title",
      type: "string",
      default: "\"Faster. Every frame.\"",
      description: "Headline. Breaks into a new line after each sentence.",
    },
    {
      name: "slant",
      type: "number",
      default: "18",
      description: "Stripe slant in degrees, leaning right.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour (any CSS colour).",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Colour scheme; ships light and dark.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier; above 1 plays faster.",
    },
  ]}
/>