Compositions
Core Primitives
Transitions
Typography
Customize
1
20
Installation
$ pnpm dlx shadcn@latest add @framecn/zoom-through-transition
Usage
import { ZoomThroughTransition } from "@/components/framecn/zoom-through-transition";<ZoomThroughTransition />API Reference
ZoomThroughTransition
| Prop | Type | Default |
|---|---|---|
children | ReactNode | - |
targetScale | number | 20 |
transformOrigin | string | "center center" |
background | string | "white" |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
Scale-through effect
The transition scales through a given element to create an aggressive zoom effect. Higher scale values create more dramatic transitions.