Saloon

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-saloon

About this component

The label split across a pair of louvred saloon doors hinged at their outer edges: hover creaks them ajar, a press swings them through and back on decaying swings, the lit room showing behind, until they settle shut.

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

Triggers3

  • Click
  • Hover
  • 3D

Techniques3

  • 3D transform
  • Perspective
  • Keyframes

Accessibility

Keyboard and screen readers

A native button named "Come in"; the doors and room are aria-hidden.

Reduced motion

The doors stay shut.

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

More buttons

See all
SnoozeGet code
SnowcapGet code
Soap pumpGet code
StaplerGet code