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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -