I'm having an issue when repeating timelines which is causing some issues. Here's the code I'm using:
var box = document.querySelector('.box');
var timeline = new TimelineMax({repeat: -1});
timeline.add(TweenMax.to(box, 1, {x: 50, y: 50}));
timeline.add(TweenMax.to(box, 1, {x: 50, y: 100}));
I just want the animation to repeat between the two positions (x: 50, y: 50 and x: 50, y: 100). The behavior I'm seeing is that the animation will reset back to the initial position (x: