Revolve

Accent colour
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-revolve

About this component

A colour picker laid out on a ring: six glossy swatches round a sunken track, with a big glass bead in the middle. The selection ring travels round the track to the swatch you pick, and the bead fills with that colour behind a ripple.

Triggers

  • Click
  • State change
  • Spring
  • Fill

Techniques

  • Transform only
  • CSS variables
  • Radial gradient
  • Keyframes
  • CSS transition

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Accent colour"), each named by aria-label (Coral, Amber, Lime, Teal, Blue, Violet); the ring, track and bead are aria-hidden. :focus-visible outlines the swatch.

Reduced motion

The ring and the bead change at once.

Use it in anything you build, commercial and client work included. Licence

More radios

See all
Stage
RollGet code
Waveform
ScopeGet code
Billing period
SloshGet code
Section
TeletextGet code