Crumple

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-crumple

About this component

A paper button: press and it crumples into a ball, holds a beat, then smooths back out with the creases still showing until they fade.

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

Triggers2

  • Click
  • Morph

Techniques3

  • clip-path
  • Keyframes
  • Gradient

Accessibility

Keyboard and screen readers

A native button named by its label, Scrap it; the creases are aria-hidden.

Reduced motion

The paper does not crumple and only the creases appear and fade.

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

More buttons

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