javascript - tweenMax 'staggerFrom' and 'From' broken with requestAnimationFrame? -


for reason when use or staggerfrom requestanimationframe, animation jumps , acts if it's doing "to" tween. when use code outside of requestanimationframe, works fine. why this? need use within requestanimationframe because trigger tween when scroll @ position , need requestanimationframe determine position (i advised that's correct way instead of attaching scroll).

here's tween:

tweenmax.staggerfrom(".box", 1, { x:100, autoalpha: .5}, .5); 

i made quick codepen demonstrating issue.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -