Diagonal Split
A diagonal seam slides the outgoing scene away to reveal the next with a band of light along the edge. A free, MIT-licensed Remotion transition.
$ pnpm dlx shadcn@latest add @remocn/diagonal-splitUsage
// src/Root.tsx
import { Composition } from "remotion";
import { DiagonalSplit } from "@/components/remocn/diagonal-split";
const DiagonalSplitScene = () => (
<DiagonalSplit
from="Built in a weekend"
to="Launched on Monday"
angle={28}
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="DiagonalSplit"
component={DiagonalSplitScene}
durationInFrames={200}
fps={60}
width={1280}
height={720}
/>
);A bright seam opens at angle, then the outgoing from scene is shoved off along the seam while the to scene settles in behind it on a fluted gradient. Pass from and to as short text or any React node and tune angle; it ships light and dark and the motion ends at frame 70.
Props13
| Prop | Type | Default |
|---|---|---|
| from | React.ReactNode"Built in a weekend" Outgoing scene: a short headline or any React node | |
| to | React.ReactNode"Launched on Monday" Incoming scene: a short headline or any React node | |
| angle | number28 Seam angle in degrees | |
| move | number36 Frames the two halves take to slide apart. | |
| accent | string"#3B5BFD" Accent color used by the scenes | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" Typeface for the copy. Load the font in your project first. | |
| theme | "dark" | "light""dark" Light or dark stage | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback multiplier for the whole timeline | |
- fromReact.ReactNode
Outgoing scene: a short headline or any React node
Default
"Built in a weekend" - toReact.ReactNode
Incoming scene: a short headline or any React node
Default
"Launched on Monday" - anglenumber
Seam angle in degrees
Default
28 - movenumber
Frames the two halves take to slide apart.
Default
36 - accentstring
Accent color used by the scenes
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Geist" - theme"dark" | "light"
Light or dark stage
Default
"dark" - 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 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback multiplier for the whole timeline
Default
1