Detonator

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-detonator

About this component

A wooden detonator box with a T-handle plunger wired to a bundle of sticks: press and the plunger goes down, a spark runs along the wire, the bundle bursts with a BOOM and a puff of smoke, and a fresh bundle appears as the plunger rises.

Dependencies
None
Difficulty
Advanced
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers2

  • Click
  • State change

Techniques4

  • State machine
  • SVG
  • Keyframes
  • clip-path

Accessibility

Keyboard and screen readers

A native button named "Detonate", renamed while the sequence runs; everything drawn is aria-hidden.

Reduced motion

The plunger sinks and the burst shows without the spark or smoke.

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

More buttons

See all
DoorbellGet code
DripGet code
E-stopGet code
FilmGet code