Band Shift
Horizontal bands slide across in a stagger, carrying colored blocks that swap one scene for the next. A free, MIT-licensed Remotion transition.
$ pnpm dlx shadcn@latest add @remocn/band-shiftUsage
// src/Root.tsx
import { Composition } from "remotion";
import { BandShift } from "@/components/remocn/band-shift";
const BandShiftScene = () => (
<BandShift
from="Before."
to="Now live."
bands={6}
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="BandShift"
component={BandShiftScene}
durationInFrames={180}
fps={60}
width={1280}
height={720}
/>
);The from headline holds for delay frames. Then 5 to 7 horizontal bands slide across in alternating directions, each carrying a colored block, and the to scene lands as they pass. Pass from and to as short text or any React node; to="remocn" sets the Remocn logo. With the defaults the shift ends at frame 55.
Props17
| Prop | Type | Default |
|---|---|---|
| from | React.ReactNode"Before." Outgoing scene: a short headline or any React node | |
| to | React.ReactNode"remocn" Incoming scene carried in by the bands | |
| bands | number6 Number of horizontal bands, clamped between 5 and 7 | |
| colors | string[]— Colors of the blocks riding between scenes; defaults to a mesh | |
| delay | number18 Frames the outgoing scene holds before the shift | |
| stagger | number3 Frames between neighbouring bands starting | |
| travel | number22 Frames each band takes to cross the frame. | |
| accent | string"#3B5BFD" Accent color used by the scenes | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Bricolage Grotesque" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number500 Weight of the headlines. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| grain | booleantrue Film grain over the scene. | |
| speed | number1 Playback multiplier for the whole timeline | |
| theme | "dark" | "light""dark" Tone the incoming scene lands on | |
- fromReact.ReactNode
Outgoing scene: a short headline or any React node
Default
"Before." - toReact.ReactNode
Incoming scene carried in by the bands
Default
"remocn" - bandsnumber
Number of horizontal bands, clamped between 5 and 7
Default
6 - colorsstring[]
Colors of the blocks riding between scenes; defaults to a mesh
- delaynumber
Frames the outgoing scene holds before the shift
Default
18 - staggernumber
Frames between neighbouring bands starting
Default
3 - travelnumber
Frames each band takes to cross the frame.
Default
22 - accentstring
Accent color used by the scenes
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
"Bricolage Grotesque" - fontWeightnumber
Weight of the headlines.
Default
500 - logoReact.ReactNode
Replaces the remocn mark.
- scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback multiplier for the whole timeline
Default
1 - theme"dark" | "light"
Tone the incoming scene lands on
Default
"dark"