Knocker

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-knocker

About this component

A brass ring knocker on a dark door: hover lifts the ring, press swings it up and it knocks twice against the strike plate, the second knock lighter, rattling the plate and shaking the door.

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

Triggers3

  • Click
  • Hover
  • 3D

Techniques3

  • 3D transform
  • Keyframes
  • SVG

Accessibility

Keyboard and screen readers

A native button named "Knock"; the door and knocker are aria-hidden.

Reduced motion

Nothing swings or rattles.

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

More buttons

See all
LCDGet code
MicrowaveGet code
MousetrapGet code
NutcrackerGet code