This script creates a mouse-following image trail effect using GSAP only (no CSS stylesheets, no native event listeners).All interaction is handled via GSAP Observer and GSAP Ticker.
This script is added in the global settings, not on a single page.




The GSAP mouse trail works only if this exact structure is present.Each element has a specific role in the animation.

⚠️ If class names don’t match → animation will not work.
These are the only values most users should touch.

💡 Performance tip: Higher values = fewer animations = better performance.


💡 Change one value at a time and test.mance.
This animation is triggered automatically when specific data attributes are added to an element.No extra JavaScript is required from the user.

💡 Result: The heading will fade in smoothly with a split text effect.