Constellation

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-constellation

About this component

On selection, five star dots appear around the option with SVG connecting lines forming a mini constellation. Each star twinkles with a looping opacity animation. Feels like the option is cosmically chosen.

Triggers

  • Click
  • State change
  • Glow
  • Ambient

Techniques

  • Keyframes
  • Transform only

Difficulty

Intermediate

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Keyboard and screen readers

Hidden native <input type="radio"> per option.

Reduced motion

Star twinkling animation skipped under prefers-reduced-motion.

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

More radios

See all
GravityGet code