Slot
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-slotAbout this component
A one-armed bandit as a button: cherry-red lacquer in a gold trim, three reels behind glass and a lever on the side. Hover and the lever ball wobbles while the reels twitch; a press pulls the lever, the reels blur and stop one after another, and three sevens light the window and throw a fountain of spinning coins.
Triggers
- Hover
- Click
- State change
- Spring
Techniques
- SVG
- SVG filter
- Keyframes
- requestAnimationFrame
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native <button> named by its label, Spin; the reels, lever and coins are aria-hidden. Enter or Space pulls the lever.
Reduced motion
The reels jump straight to their result, with no lever pull, wobble, flash or coins.
Use it in anything you build, commercial and client work included. Licence