Roll

Stage
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-roll

About 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

More radios

See all
Waveform
ScopeGet code
Billing period
SloshGet code
Section
TeletextGet code
Package manager
ASCIIGet code