Neon Sign

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-neon-sign

About this component

An OPEN sign as a switch. Off, the tubes are dark glass; on, the word stutters to life with a few flickers before burning steady with a glow that lights the board, and the E keeps catching now and then, like a real sign that needs a new transformer. Pure CSS on a native switch.

Triggers

  • Click
  • State change
  • Neon
  • Glow

Techniques

  • Keyframes
  • Filter

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Native checkbox with role="switch" inside a <label>. The input has aria-label "Open sign" (the sign itself is decorative). Focus ring on the visual via :focus-visible.

Reduced motion

The change is instant.

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

More toggles

See all
PadlockGet code
PixelGet code
RockerGet code
RotaryGet code