Filings
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-filingsAbout this component
A field of 52 compass needles inside the button, every one turning to point at the cursor wherever it is on the page, brighter and longer the closer it gets, with a springy transition between headings. A click spins the whole field once in a staggered sweep.
Triggers
- Hover
- Click
- Mouse tracking
- Delay stagger
Techniques
- Mouse tracking
- CSS variables
- CSS transition
- Keyframes
- Stagger
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The needles are aria-hidden and the label sits on its own backing for contrast.
Reduced motion
The needles never track or spin.
Use it in anything you build, commercial and client work included. Licence