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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -