Black Friday: 30% off Pro

Get 30% off

Slot-machine Letters

Preview

Customize

Duration0.50s
Stagger0.05s
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/slot-letters.json
Adds the files to components/uibrik/slot-letters and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/slot-letters.

Usage

import { SlotLetters } from "@/components/uibrik/slot-letters/slot-letters";​<SlotLetters  play={0}  words={["ROUND", "ABOUT", "TURNS", "AGAIN"]}  duration={0.5}  stagger={0.05}/>

Where to use Slot-machine Letters

  • Rotating headlines

    Each letter spinning like a reel to land on the next word adds suspense.

    Pairs with Scramble to Word

  • Casino and game themes

    Slot-machine letters fit games, prizes and lotteries.

  • Reveals and countdowns

    Landing on a word works for announcing a winner or launch name.

Props

SlotLetters
words
Type string[]
["ROUND","ABOUT","TURNS","AGAIN"]
Uppercase A–Z words, cycled one per play.
duration
Type number
0.5
Time for a reel to stop.
stagger
Type number
0.05
Delay between reels.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.