Compositions
Core Primitives
Transitions
Typography
Customize
1
20
Installation
$ pnpm dlx shadcn@latest add @framecn/directional-wipe
Usage
import { DirectionalWipe } from "@/components/framecn/directional-wipe";<DirectionalWipe />API Reference
DirectionalWipe
| Prop | Type | Default |
|---|---|---|
from | ReactNode | - |
to | ReactNode | - |
direction | "left" | "right" | "up" | "down" | "left" |
transitionStart | number | 36 |
transitionDuration | number | 20 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
width | number | 1280 |
height | number | 720 |
background | string | "black" |
className | string | - |
Notes
Push-style transition
One scene slides in while pushing the other out in the specified direction. The duration controls the transition speed.