Pointer effects (follow and custom cursor)
Magnetic and tilt effects that follow the pointer, plus a site-wide custom cursor that changes over elements.
The Follow action pulls, tilts and grows an element toward the pointer while it is over it, and eases it back on leave. The On Pointer event maps the pointer's position across an element to an animation. The Cursor action adds one custom cursor for the whole site that follows the pointer and takes a state from the element under it (data-cursor="name" gives the class dh-cursor-name). Use them for magnetic buttons, tilting cards and branded cursors.
How it works
- Follow: translate 0-200 px (default 12), rotate 0-60 deg, scale 0.5-2, lerp 0.01-1 (default 0.15). Writes translate, rotate and scale as separate properties.
- Cursor: lerp 0.01-1 (default 0.2); run once on the page ready event; the native hand cursor is hidden for elements with a cursor state.
- On Pointer event: axis x, y or distance; delay and duration are shares of the pointer travel (max 10000).
- Reduced motion: Follow does nothing; the cursor sits on the pointer without easing.
When to use it
- Magnetic CTA button
- 3D tilt on product cards
- Custom cursor that grows over links
Limitations
- One custom cursor per site.
Availability
- Works in Designer.
- Included in every plan.
How to use it.
- Add an interaction on On Pointer (enter and leave) with a Follow action.
- For a cursor, add a Cursor action on the page ready event and set data-cursor on elements.
Related features.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→