Captions
Compositions
Core Primitives
Transitions
Typography
- Blur Reveal
- Staggered Fade Up
- Masked Slide Reveal
- Tracking In
- Inline Highlight
- Marker Highlight
- Shimmer Sweep
- Typewriter
- Text Fade Replace
- Slot Machine Roll
- Infinite Marquee
- Perspective Marquee
- Matrix Decode
- RGB Glitch Text
- Strikethrough Replace
- Blur Out Up
- Bottom Up Letters
- Top Down Letters
- Per Character Rise
- Soft Blur In
- Micro Scale Fade
- Scale Down Fade
- Focus Blur Resolve
- Spring Scale In
- Line by Line Slide
- Mask Reveal Up
- Short Slide Right
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.