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?
Demo