Venetian Blinds
Venetian blinds transition for Remotion - the outgoing scene splits into horizontal slats that flip edge-on in a staggered ripple to reveal the next scene
In Remotion, Venetian Blinds is a transition where the outgoing scene splits into horizontal slats that flip edge-on in a staggered ripple, like window blinds, to reveal the next scene. It is a TransitionSeries presentation for graphic, editorial cuts such as a brand reel.
$ pnpm dlx shadcn@latest add @remocn/venetian-blindsHow to flip a scene away in slats like blinds in Remotion
You don't need to write a custom TransitionPresentation with presentationProgress math. Install the presentation and pass it to TransitionSeries.Transition:
npx shadcn@latest add @remocn/venetian-blindsslatssets how many strips (12 by default),staggerhow far the ripple spreads,directionwhere it starts ("top-down","bottom-up"or"center"),shadeColorthe tint a slat picks up as it turns.- The incoming scene settles from a 1.06 zoom to rest behind the slats. That zoom is built in, not a prop; since the source is in your project, change it in
components/remocn/venetian-blinds.tsxif you want a flat reveal.
Good to know
- Length: 26 frames at 30 fps, the value for
linearTiming; the example below is a 60 fps composition and passes 52. see Frame rate. - Installs:
remotionand@remotion/transitionsfrom npm, plus the remocn helpersglideandframe-rate. Plain CSS 3D transforms, no WebGL. - Render cost: the outgoing scene is mounted once per slat, so a heavy scene costs about
slatstimes as much during the cut. These docs don't give render-time numbers; lowerslatsif renders slow down, or use Zoom Blur for a cheap cut.
Usage
venetianBlinds() is a Remotion transition presentation. Pass it to a
TransitionSeries.Transition between two sequences. The outgoing scene is cut
into slats horizontal strips. Each strip rotates around its own horizontal
axis until it is edge-on, picking up shadeColor as it turns away from the
light, and fades out just before it becomes a hairline. The strips start one
after another in a ripple whose spread is set by stagger. Behind them the
incoming scene settles from a slight 1.06 zoom to rest.
import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { venetianBlinds } from "@/components/remocn/venetian-blinds";
export const MyVideo = () => (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={140}>
<SceneA />
</TransitionSeries.Sequence>
{/* 60 fps composition: 26 frames at 30 fps = 52 here */}
<TransitionSeries.Transition
timing={linearTiming({ durationInFrames: 52 })}
presentation={venetianBlinds({ direction: "center" })}
/>
<TransitionSeries.Sequence durationInFrames={140}>
<SceneB />
</TransitionSeries.Sequence>
</TransitionSeries>
);The outgoing scene is rendered once per slat (12 copies by default), so render
cost grows with slats. Keep the outgoing scene light, or lower slats, if
renders slow down.
Variations
direction: "top-down"(default) starts at the top slat,"bottom-up"at the bottom,"center"opens from the middle outward.stagger: 0turns every slat at once. Higher values stretch the ripple; at 0.9 each slat gets only a tenth of the transition to turn.- A lighter
shadeColorsuch as"#FFFFFF"makes the slats catch light instead of falling into shadow.
Props
venetianBlinds(props) accepts:
| Prop | Type | Default |
|---|---|---|
| slats | number12 Number of horizontal slats. Rounded, minimum 1. | |
| stagger | number0.55 Share of the transition spent rippling across the slats, 0 to 0.9. | |
| direction | "top-down" | "bottom-up" | "center""top-down" Which slat turns first. | |
| shadeColor | string"#000000" Tint a slat picks up as it turns edge-on. | |
- slatsnumber
Number of horizontal slats. Rounded, minimum 1.
Default
12 - staggernumber
Share of the transition spent rippling across the slats, 0 to 0.9.
Default
0.55 - direction"top-down" | "bottom-up" | "center"
Which slat turns first.
Default
"top-down" - shadeColorstring
Tint a slat picks up as it turns edge-on.
Default
"#000000"