Neon Trace

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-neon-trace

About this component

An SVG rectangle border traces around the selected option using stroke-dashoffset animation, drawing a neon white circuit-board outline from the top-left corner around the full perimeter. The glow persists after tracing.

Triggers

  • Click
  • State change
  • Glow
  • Border

Techniques

  • Keyframes
  • CSS variables

Difficulty

Advanced

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

SVG trace animation is decorative and skipped under prefers-reduced-motion.

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

More radios

See all
NeuralGet code
PixelGet code