Jump to content
Search Community

Red dot scroll journey

artvera
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

artvera
Posted (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 by artvera
better phrased
  • Solution
mvaneijgen
Posted

Check out this post 

 

 

 

Hope it helps and happy tweening! 

  • Like 3
artvera
Posted
3 hours ago, mvaneijgen said:

Check out this post 

 

 

 

Hope it helps and happy tweening! 

This is just what I needed 👌 Thanks

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...