Compositions
Core Primitives
Transitions
Typography
Customize
84
1200
2
8
-28
1
Installation
$ pnpm dlx shadcn@latest add @framecn/perspective-marquee
Usage
import { PerspectiveMarquee } from "@/components/framecn/perspective-marquee";<PerspectiveMarquee />API Reference
PerspectiveMarquee
| Prop | Type | Default |
|---|---|---|
items | string[] | DEFAULT_ITEMS |
fontSize | number | 84 |
color | string | "#fafafa" |
fontWeight | number | 700 |
pixelsPerFrame | number | 2 |
rotateY | number | -28 |
rotateX | number | 8 |
perspective | number | 1200 |
fadeColor | string | "#050505" |
background | string | "#050505" |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 300 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
3D perspective creates depth
The marquee uses CSS perspective and transform3D for the 3D effect. Text fades in opacity as it moves deeper into the scene.