Champagne

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-champagne

About this component

A champagne bottle: hold to shake it, the shake grows and bubbles climb the neck, and on release the cork fires out of the frame with a jet of foam. Let go too soon and it only settles.

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

Triggers3

  • Click
  • State change
  • Spring

Techniques3

  • State machine
  • Keyframes
  • Gradient

Accessibility

Keyboard and screen readers

A native button named "Celebrate, hold to shake" with an aria-live line for the outcome.

Reduced motion

The bottle does not shake and the cork simply disappears.

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

More buttons

See all
Click penGet code
ClickerGet code
CrosswalkGet code
CrumpleGet code