Custom cursor
A dot and a ring that follow the mouse, grow over links and show text labels. Desktop only, and it respects reduced motion.
How it works
On desktop with a mouse, the system pointer is replaced by a small dot and a ring that follows it with a soft delay. Over links and buttons the ring shrinks into the dot, and comes back when you move away. Over elements that have data-cursor="Label" the ring and dot give way to a round text label. Property cards show "View" by default. Move your mouse around this page to see it.
There is nothing to set up. effects.js creates the cursor. It does not run on touch screens or when the visitor prefers reduced motion, and the system pointer stays on text fields. Turn it off for the whole site with <html data-cursor="off">, or let visitors do it in the customizer.
Classes and attributes
| Name | Purpose |
|---|---|
data-cursor="off" on html | Turns the custom cursor off. The customizer has a switch for it. |
data-cursor="View" | On any element. Shows a round label with your text. |
data-cursor="native" | On any element. Keeps the system pointer there. |
.cursor-ring, .cursor-dot, .cursor-label | Parts made by the script. Style them in cursor.css. |
html.has-cursor, .cursor-link, .cursor-down | State classes the script sets. Use them to restyle the cursor. |