Roll
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/radio-rollAbout this component
Three big words, Design, Build and Ship, each with a radio ring. Pick one and its letters roll over one after another into its colour while its ring fills; the word you leave rolls back to grey the same way.
Triggers
- Click
- State change
- Delay stagger
Techniques
- Text animation
- Transition delay stagger
- CSS variables
- CSS transition
- clip-path
Difficulty
Beginner
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Stage"), each named by aria-label (Design, Build, Ship) because the split letters are aria-hidden. :focus-visible outlines the ring.
Reduced motion
The roll is switched off and the picked word changes colour at once.
Use it in anything you build, commercial and client work included. Licence