Shockwave

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-shockwave

About this component

On click, 3 bright rings burst from the click point with staggered delays (0ms, 120ms, 240ms), each expanding and fading for a shockwave effect. Rings are spawned as DOM elements with CSS custom properties (--delay, --dur) and removed when done. No dependencies.

Triggers

  • Click

Techniques

  • Keyframes
  • CSS variables

Difficulty

Intermediate

Accessibility

Reduced motion

Animation skipped under prefers-reduced-motion.

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

More buttons

See all
Stagger LettersGet code