Jump to content


Stop animation with last loop

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

I am new to GSAP. Now I have a problem over which I have been working for several days.

I have infinite looped animation of the movement of the car on the road (in example I use GSAP logo). The car simply moves along the x axis from left to right. At some point in time, I need to press a button and the car should stop appearing again. I mean, it should go to the end of this cycle, but should not start a new one. I was looking for ready-made solutions on the forum, but they all lead to the fact that the car simply disappears in the middle of the road or stops on road.

I have some ideas on how this can be done, but I dont have enough skills. For example, set the parameter repeat-delay: 999999. (if it possible).
Maybe there is a stop animation something like withLastFrame, onLastLoop?



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.