can't get ScrollMagic parralax tween to work -


i'm trying implement code first example here:

http://janpaepke.github.io/scrollmagic/examples/advanced/parallax_scrolling.html

the following tween works (but tweens immediately)...

var tween = new timelinemax().add([         tweenmax.to('#test',1,{top:"50%",ease:linear.easenone})     ]); 

when add following code...

var scene = new scrollmagic.scene({     triggerelement:'#test' ,     duration:500 })     .settween(tween)     .addto(controller); 

i below error:

uncaught typeerror: (intermediate value).settween not function

i'm going crazy trying figure out. doing wrong?

answering own question since god documentation thing sparse.

you need include

http://cdnjs.cloudflare.com/ajax/libs/scrollmagic/2.0.5/plugins/animation.gsap.js

to make scrollmagic work gsap


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -