Skip to content

Design5 min read

How to Create a Custom Cursor in Webflow

Learn how to create a custom cursor in Webflow: hide the native cursor, build the element, and make it follow your mouse.

In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to create a custom cursor in Webflow to strengthen your website’s visual identity.

Example

Move your mouse here

CSS propertyValueDescription
cursornoneHides the browser’s native cursor
positionfixedThe cursor follows the mouse
pointer-eventsnoneThe custom cursor doesn’t block clicks
z-index9999Above all elements

1. Hide the native cursor

In your global Webflow styles, add cursor: none to the body selector.

2. Create the cursor element in Webflow

Add a Div in the body with the custom-cursor class. Set it to: Fixed position, 20px width, 20px height, 50% border-radius, a background color that matches your accent color, pointer-events: none, z-index: 9999. Leave it at 0,0 for now, the script will reposition it.

3. Add this script in the <body>

const cursor = document.querySelector('.custom-cursor');
document.addEventListener('mousemove', function(e) {
  cursor.style.left = e.clientX - 10 + 'px';
  cursor.style.top = e.clientY - 10 + 'px';
});
document.querySelectorAll('a, button').forEach(function(el) {
  el.addEventListener('mouseenter', function() { cursor.style.transform = 'scale(2)'; });
  el.addEventListener('mouseleave', function() { cursor.style.transform = 'scale(1)'; });
});

Conclusion

A custom cursor strengthens the visual identity of creative websites. Use cases:

  • Portfolios and creative websites
  • Brand websites with a strong visual identity
  • Immersive landing pages

Published on May 19, 2026

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

Let’s f*****G GO !!