Cursor snaps and distorts toward interactive elements like a magnet. Ultra-premium feel.
<!-- Paste before </body> --> <div id="cursor-mag"></div> <!-- Add data-magnetic to any element you want the cursor to snap toward --> <button data-magnetic>Hover me</button>
Add the HTML structure before your closing </body> tag
Include the CSS in your stylesheet or <style> tag
Add the JavaScript code in a <script> tag or external file
Move your mouse to see the custom cursor in action!
Update the color values in CSS to match your brand
#ec4899Modify width and height properties to scale the cursor
Change transition duration values for faster/slower animations