The GSAP Magnetic Mouse element creates an interactive animation effect where an HTML element follows the mouse cursor with a magnetic-like behavior, moving smoothly towards the cursor position when hovered. The effect includes configurable options for movement threshold, zoom level, animation duration, and easing functions, while respecting user preferences for reduced motion.
You can copy these sections and paste them on your website by clicking on the COPY SECTION button under each section.