On the code pen below, when we click the Stop button, the pink box stops on one of the boxes on top. Nevertheless, the pink box loops backward instead of forward (ie, the pink box moves in opposite direction after clicking the stop button). How could I make the pink box to loop forward? I'd appreciate the help.
TweenTo Not looping forward
in GSAP
Posted
Hello -
On the code pen below, when we click the Stop button, the pink box stops on one of the boxes on top. Nevertheless, the pink box loops backward instead of forward (ie, the pink box moves in opposite direction after clicking the stop button). How could I make the pink box to loop forward? I'd appreciate the help.
See the Pen GzLdvJ by jollygreen10 (@jollygreen10) on CodePen
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
See the Pen GzLdvJ by jollygreen10 (@jollygreen10) on CodePen