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
30
1
Installation
$ pnpm dlx shadcn@latest add @framecn/spatial-push
Usage
import { SpatialPush } from "@/components/framecn/spatial-push";<SpatialPush />API Reference
SpatialPush
| Prop | Type | Default |
|---|---|---|
from | ReactNode | - |
to | ReactNode | - |
direction | "up" | "down" | "left" | "right" | "up" |
transitionStart | number | - |
transitionDuration | number | 30 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
3D perspective push
The old scene is pushed back in 3D space while the next scene slides in from
the chosen direction. Use transitionDuration to control how long the push
phase takes.