Jump to content
Search Community

GSAP Motion Path Plugin w/ Mouse Following

existentialdread test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hello! I am trying to utilize the motion path plugin to lightly (within a range) follow a mouse cursor along a predefined path, but am having some issues with the values I'm seeing when using the getRawPath method, they seem to be larger than the ones I see on Circle Two. I'm thinking it has something to do with the origin, but am not sure. You can see the animation on the right for what I would like the arrow animation to be, but I can't seem to get it properly working when it is hooked up to the 'mousemove' listener. Any help would be greatly appreciated. Thanks in advance!

See the Pen poLrEOd by january1979 (@january1979) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...