Directional Wipe
Slide one scene in while pushing the other out
Installation
$ pnpm dlx shadcn@latest add @remocn/directional-wipeUsage
// src/Root.tsx
import { Composition } from "remotion";
import { DirectionalWipe } from "@/components/remocn/directional-wipe";
const DirectionalWipeScene = () => (
<DirectionalWipe
from={<SceneA />
);
export const RemotionRoot = () => (
<Composition
id="DirectionalWipe"
component={DirectionalWipeScene}
durationInFrames={90}
fps={30}
width={1280}
height={720}
/>
);Props
| Prop | Type | Default | Description |
|---|---|---|---|
from | ReactNode | — | The outgoing scene. Falls back to a labeled colored panel. |
to | ReactNode | — | The incoming scene. Falls back to a labeled colored panel. |
direction | "left" | "right" | "up" | "down" | "left" | Direction the outgoing scene slides toward |
transitionStart | number | durationInFrames * 0.4 | Frame at which the wipe begins |
transitionDuration | number | 20 | Length of the wipe in frames |
className | string | — | Optional className for the outer container |
Image Expand To Fullscreen
A thumbnail in a feed post lifts off the card and morphs seamlessly into a fullscreen editor, with toolbars sliding in to meet it
Swipe Transition Wipe
A mobile-style swipe transition where the outgoing scene flicks off-screen and the new one slides in beside it, with a parallax background and a darkening trail