Focus

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-focus

About this component

A label seen through a lens that is out of focus, soft and doubled: hover and it hunts for focus like an autofocus motor, overshooting once before it locks sharp, the distance scale sliding along and the confirm dot lighting. A press blinks the shutter.

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

Triggers3

  • Hover
  • Click
  • Focus

Techniques3

  • Keyframes
  • Filter
  • Transform only

Accessibility

Keyboard and screen readers

A native button named by its label, Capture, which is also sharp under keyboard focus; the scale and shutter are aria-hidden.

Reduced motion

The label snaps sharp at once.

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

More buttons

See all
GlowstickGet code
GongGet code
GuillocheGet code
HazardGet code