Flash

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-flash

About this component

A vintage flash unit with a silvered dish: press and the bulb flares white across the stage, the label lingers as a negative afterimage that fades, the spent bulb goes grey and a fresh one clicks in before READY lights.

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

Triggers3

  • Click
  • Glow
  • State change

Techniques4

  • Keyframes
  • Radial gradient
  • mix-blend-mode
  • State machine

Accessibility

Keyboard and screen readers

A native button named "Flash", renamed while the bulb is changed.

Reduced motion

The burst and afterimage are skipped and the bulb simply changes state.

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

More buttons

See all
FocusGet code
GlowstickGet code
GongGet code
GuillocheGet code