Jump to content
Search Community

object following svg path around more than once

Guest
Moderator Tag

Go to solution Solved by OSUblake,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi all,  I'm trying to make an object move around a track using the svg path.  It works nicely until it gets to the end of the first lap (which is an oval).  I have to use the progress parameter which is updated every second from elsewhere.  I can't see a way to move from the first lap to the next because once progress is >= 1 then the object stops at the end of the first lap.

 

What I have so far is producing inconsistent results when it transitions from the end of the first lap to the start of the second.

 

Is there a recommended way to get a smooth animation as the progress continues beyond the first lap?

 

Any help much appreciated.

 

Codepen attached.

 

Thx.

See the Pen jbgaqW by anon (@anon) 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...