我是使用scrollmagic并尝试通过复制ScrollMagic的一个示例来学习的菜鸟。 http://scrollmagic.io/examples/advanced/advanced_tweening.html
为了加载scrollmagic和greensocks javascript库,我在下面添加了这些脚本。但是,在控制台中,它说.setTween不是一个函数..如何成功加载这些脚本?他们的顺序不正确吗?
<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/ScrollMagic/2.0.5/plugins/debug.addIndicators.js"></script>
感谢您的帮助:)
答案 0 :(得分:0)