Slash Wipe
A gradient slash wipes across and reveals a large title, '/transitions', with a one-line sub. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/slash-wipeUsage
// 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
| Prop | Type | Default |
|---|---|---|
| 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.
Default
DEFAULT_SECTIONS - everynumber
Frames between one section and the next.
Default
56 - logoReact.ReactNode
Custom logo node shown in place of the built-in mark.
- fontWeightnumber
Weight of the section titles.
Default
500 - 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.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback multiplier; above 1 plays faster.
Default
1 - theme"dark" | "light"
Colour scheme; ships light and dark.
Default
"dark"