artvera Posted May 7 Posted May 7 (edited) Hi everyone, I’m experimenting with the GSAP MotionPath plugin and running into an issue. I’m animating a red dot along an SVG path using motionPath, but the dot moves too quickly and goes off screen — I can’t manage to keep it visible throughout the scroll. I tried using path.getTotalLength() to dynamically set the scroll distance, but it didn’t help much. Is there a way to slow it down or ensure the dot stays within the viewport during the scroll? Thanks in advance for your help! 😊 See the Pen pvvKLWy by Arthur-Vera-the-typescripter (@Arthur-Vera-the-typescripter) on CodePen. Edited May 7 by artvera better phrased
Solution mvaneijgen Posted May 7 Solution Posted May 7 Check out this post Hope it helps and happy tweening! 3
artvera Posted May 7 Author Posted May 7 3 hours ago, mvaneijgen said: Check out this post Hope it helps and happy tweening! This is just what I needed 👌 Thanks
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now