CURSOR AND HOVER LIBRARYCursors and hovers
Cursors and hovers
with pull.
Spring-driven cursors and hover effects for the buttons you already have. Add one attribute, tune it in the inspector, export plain HTML, CSS and JS.
- Install
- One attribute
- Runtime
- Vanilla JS
- Dependencies
- None
PULL RADIUS
120 PX Open the index
120 PX Open the index
Move across the field. The cursor finds the buttons.Tap a button. Same feedback, made for touch.
THE INDEX
Every effect, on the bench.
Press any stage to play it.
Tune to adjust and export.
The interaction library is taking shape.
“add a cursor that snaps
around my buttons”
zm_call("cursor-kit", "get", { id: "snap-ring" })What is Attract?
Attract (formerly Cursor & Hover Kit) is a free, MIT-licensed kit by ZirkoMirko with 53 cursor and hover effects. The snap-ring reads each button's size and border radius and wraps it with a 7 px gap. Every effect exports as standalone HTML, CSS and JS with no dependencies; cursors switch off on touch screens and calm down under reduced motion.
How it works
- Open the lab, hover the tiles and open the one you want, for example the snap-ring cursor.
- Copy the HTML, CSS and JS parts, or ask your agent: add a cursor that snaps around my buttons.
- Paste the three parts and put the data attribute on a section or button. No build step and no library.
FAQ
- Is the Cursor & Hover Kit free?
- Yes. It is free and MIT licensed.
- Does it work on phones?
- Cursor effects turn off on touch screens and the native cursor stays. Hovers fall back to a press cue.
- Does it need React or another library?
- No. Each exported effect is plain HTML, CSS and JavaScript with no dependencies.
- What about keyboard and reduced motion users?
- The snap-ring also shows on keyboard focus. With reduced motion there are no trails or magnetic movement and the ring becomes a plain outline.