Pedal bin

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-pedal-bin

About this component

A steel pedal bin: press the pedal and the lid flips up on its hinge, a crumpled note drops in, and the lid clanks shut with a bounce when you let go.

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

Triggers2

  • Click
  • 3D

Techniques3

  • 3D transform
  • Keyframes
  • clip-path

Accessibility

Keyboard and screen readers

A native button named "Discard"; the bin is aria-hidden.

Reduced motion

The lid opens and closes without animation and the note is skipped.

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

More buttons

See all
PlaneGet code
Pop itGet code
PuttyGet code
RisoGet code