Op-art

Pattern
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-opart

About this component

A pattern picker in sixties op-art: three black and white discs of rings, waves and rays. The disc you pick takes on its two colours and starts to move inside a ring of its colour, the rings running outward, the waves flowing and the rays turning.

Triggers

  • Click
  • State change
  • Loop
  • Gradient

Techniques

  • @property
  • Keyframes
  • Conic gradient
  • Radial gradient
  • SVG
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Pattern"), each in a <label> with its visible name (Rings, Waves, Rays); the discs are aria-hidden. :focus-visible outlines the disc.

Reduced motion

The picked disc takes its colours and ring but stays still.

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

More radios

See all
Reaction
ReactionGet code
Accent colour
RevolveGet code
Stage
RollGet code
Waveform
ScopeGet code