Hi everyone,
there is an issue when populating a timeline by the returned Tweens of a function. Using TweenMax.to() with a duration of 0 or using TweenMax.set() are triggered at function call:
function getTween() {
return {
one:TweenMax.set($el,{property:1}),
two:TweenMax.to($el,0,{property:2}),
three:TweenMax.to($el,1,{property:3})
};
}
Property 1 and 2 are applied to $el on function call. Property 3 is applied as intended on TimelineMax.add(getTween().three)
Is there a way to prevent immediate trigger of Tweens with duration of 0?
Thank you in advance!