Hey I'm new to using TweenMax,
There's one thing I've been doing but I'm wondering if there's a better way,
I often need to repeat a number of events... it's kind of like a movieclip in flash.
So in this example I'm trying some sort of Hanna Barbara style walkcycle.
I just call the function inside my timeline.
function walkcycle(timeline, element, repeats) {
for (var i = 0; i < repeats; i++) {
timeline
.add("step")
.to(element, 0.2, { bottom: -4, ease: Power2.easeIn })
.to(element, 0.35, { bottom: 0, ease: Power1.easeInOut })
.to(element, 0.55, { left: "+=55" , ease: Power0.easeNone }, "step");
}
}
But I wonder if there's a better way using TweenMax methods? It works but it's not always ideal. It also breaks chaining.