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
120
700
1
Installation
$ pnpm dlx shadcn@latest add @framecn/slot-machine-roll
Usage
import { SlotMachineRoll } from "@/components/framecn/slot-machine-roll";<SlotMachineRoll />API Reference
SlotMachineRoll
| Prop | Type | Default |
|---|---|---|
from | string | "$99" |
to | string | "$199" |
fontSize | number | 120 |
color | string | "#171717" |
fontWeight | number | 700 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 45 |
className | string | - |
Notes
Each character rolls independently
Characters roll in sequence with slight delays between each roll. The duration controls how long each character takes to settle.