Slash Wipe

A glowing gradient diagonal slash sweeps across the frame and uncovers a large section title with a one-line sub, a title card for each product area. A free, MIT-licensed Remotion text animation.

In Remotion, Slash Wipe sweeps a glowing gradient diagonal slash across the frame to uncover a large section title with a one-line sub. Use it for section title cards, one per product area.

Installation
$ pnpm dlx shadcn@latest add @remocn/slash-wipe

How to make a glowing diagonal slash uncover a title

A section title card where a glowing diagonal slash sweeps across and uncovers a big title plus a one-line sub is one component:

bash
npx shadcn@latest add @remocn/slash-wipe
  • Pass sections as { title, sub? } objects, up to five. Write the title without a leading /: the slash before it is drawn by the component as an SVG shape.
  • The first section rises in on its own. Each next one arrives with a wipe: the gradient slash stretches to full height, sweeps across, and the new title slides in 12 frames after the wipe starts. every (56) is the gap between wipes.
  • One section works too: sections={[{ title: "captions", sub: "Styles that follow every word." }]} plays only the rise-in, done at frame 24.
  • Length in 30 fps frames: 24 for one section; for two or more, 60 + (sections − 2) × every.

For a single headline with no wipe use Scan Reveal; for titles that scroll as a list, Index List.

Good to know

  • Length: 60 frames of motion at 30 fps (120 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 (delay, stagger, hold) stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads Bricolage Grotesque and Manrope 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 { SlashWipe } from "@/components/remocn/slash-wipe";
 
const SlashWipeScene = () => (
  <SlashWipe sections={[{ title: "captions", sub: "Styles that follow every word." }, { title: "transitions", sub: "Cuts that land on the beat." }]} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SlashWipe"
    component={SlashWipeScene}
    durationInFrames={220}
    fps={60}
    width={1280}
    height={720}
  />
);

A gradient slash sweeps across the frame and reveals the first title, then another slash wipes in the next, each with a one-line sub. Pass sections (title and optional sub) and your own logo; it ships light and dark.

Props12

PropTypeDefault
sections
SlashSection[]DEFAULT_SECTIONS

Titles with optional sub, each revealed by a slash.

every
number56

Frames between one section and the next.

logo
React.ReactNode—

Custom logo node shown in place of the built-in mark.

fontWeight
number500

Weight of the section titles.

accent
string"#3B5BFD"

Accent colour (any CSS colour).

ink
string—

Text color; overrides the theme ink.

background
string—

Overrides the theme background colour.

fontFamily
string"Bricolage Grotesque"

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.

speed
number1

Playback multiplier; above 1 plays faster.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

  • sectionsSlashSection[]

    Titles with optional sub, each revealed by a slash.

    DefaultDEFAULT_SECTIONS

  • everynumber

    Frames between one section and the next.

    Default56

  • logoReact.ReactNode

    Custom logo node shown in place of the built-in mark.

  • fontWeightnumber

    Weight of the section titles.

    Default500

  • accentstring

    Accent colour (any CSS colour).

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Overrides the theme background colour.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Bricolage Grotesque"

  • 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

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"