Thanks Jonathan, that's really handy
I am actually using it within a nested Sequence, and I noticed the onRepeat method doesn't behave correctly when nested
TweenLite.defaultEase = Power0.easeNone;
var textAnims = new TimelineMax({
repeat:-1,
onRepeat: seek2
});
textAnims.to(".red", 0.5, {x:400, autoAlpha:0.3})
.to(".red", 0.5, {x:0, autoAlpha:1})
.to(".green", 0.5, {x:400, autoAlpha:0.3})
.to(".green", 0.5, {x:0, autoAlpha:1})
.to(".blue", 0.5, {x:400, autoAlpha:0.3})
.to(".blue", 0.5, {x:0, autoAlpha:1})
function seek2(){
textAnims.seek(1.5);
}
var tl = new TimelineMax();
tl.add(textAnims, 0.0)