janpaepke / ScrollMagic

The javascript library for magical scroll interactions.
http://ScrollMagic.io
Other
14.9k stars 2.17k forks source link

Uncaught Type Error, .setTween is not a function. #589

Open rjsdnwk opened 8 years ago

rjsdnwk commented 8 years ago

Hello, I just started to learn using scrollmagic. And I faced first obstacle to overcome...

So, I tried to replicate one of examples, http://scrollmagic.io/examples/advanced/advanced_tweening.html to understand how it works. However, in my javascript console, it says "Uncaught TypeError: (intermediate value).setTween is not a function".

I have searched to fix this error and followed https://github.com/janpaepke/ScrollMagic/issues/296 this thread. But it did not solve the problem...

Below codes are how did I load javascript from cdn.. Any suggestions for me to resolve this issue??

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/jquery.gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/plugins/CSSPlugin.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.js"></script>

Thank you

LucitheR commented 7 years ago

Better late than never, you need this for it to work: http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.js