How would I keep the blue box spinning while allowing what comes afterward to animate? I guess it's logical for the timeline to wait for the blue box but it's never going to finish! I thought the answer was a separate timeline for the blue box, then using .add() but same result.
See the Pen qbLGMX by anon (@anon) on CodePen
Yup, infinitely repeating animations definitely make it difficult to add things relative to the end of the timeline. All great suggestions so far.
There are 2 methods of TimelineLite() that can be used together to bypass the need for labels, hard-coded offsets, function calls etc. in this scenario.
recent() : Returns the most recently added child tween/timeline/callback regardless of its position in the timeline.
endTime() : Returns the time at which the animation will finish according