Hey guys,
I want to pause the timeline when it's completed.
tl = new TimelineMax({repeat: -1, paused: true});
tl
.to(dummy, 0.5, {x: '+=60', ease:Power3.easeOut}, 0.5)
.addPause()
.to(dummy, 0.5, {x: '-=60', ease:Power3.easeOut}, 1.5)
.addPause();
The first addPause() works, the one at the end doesn't effect the timeline at all.
The timeline is paused on load, a click on a button starts it. It pauses on the first addPause, a buttons starts it again but it doesn't pause on the last addPause.
I hope it's somehow clear what I'm trying to achieve
I'm thankful for any help.