Counter

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-counter

About this component

A fire button you charge: a flame rim turns round it at rest; hold it and sparks are drawn in while heat fills its face and it starts to crackle; let go and it lands a hit sized to the charge, with a white flash, a starburst, shock rings, a spray of sparks, embers and shards, and a shake.

Triggers

  • Click
  • Glow
  • State change

Techniques

  • Conic gradient
  • Keyframes
  • requestAnimationFrame
  • SVG
  • CSS variables

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native <button>; Space or Enter held down charges it just like a held pointer, and releasing the key lands the hit. The rim, rings, starburst and canvas are aria-hidden.

Reduced motion

The loops and the burst are skipped.

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

More buttons

See all
SealGet code
BubbleGet code
SapphireGet code
LiquidGet code