Halftone
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-halftoneAbout this component
Three dot screens on one 7px grid: a faint base, a brighter screen whose dots swell under the cursor through a radial mask, and a ring of bright dots that rolls across the surface from the pointer on enter and click, its radius animated through a registered custom property.
Triggers
- Hover
- Click
- Mouse tracking
- Spotlight
Techniques
- Radial gradient
- @property
- CSS variables
- Keyframes
- Event position
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A text shadow keeps the label readable over the dots.
Reduced motion
The ring wave and transitions are off under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence