[英]can't get scroll magic to work in JSFIDDLE (part 1 of 2)
I have a one page scrolling website that I'm working on. 我有一个正在工作的单页滚动网站。 I am trying to implement ScrollMagic and pin the first section so that the remaining sections of the website scrolls over top of the pinned section.
我正在尝试实现ScrollMagic并将第一部分固定,以使网站的其余部分滚动到固定部分的顶部。 I tried to create a jsfiddle to show the issue, but I can't seem to get jsfiddle working (first time using fiddle so I may have something not linked up correctly. link to fiddle
...
我试图创建一个jsfiddle来显示此问题,但是我似乎无法使jsfiddle正常工作(第一次使用fiddle,因此我可能无法正确链接某些东西。 链接到fiddle
...
After I get this working I have a follow up / new question in regards to scroll magic, but I think it would be helpful if I am able to show my problem in the fiddle. 在完成这项工作后,我将获得有关滚动魔术的后续/新问题,但我认为如果能够在小提琴中展示我的问题会很有帮助。
You forgot to include external ScrollMagic libraries: 您忘记了包含外部ScrollMagic库:
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.min.js
I've added them to your jsFiddle and it looks like everything is working correctly now. 我已经将它们添加到您的jsFiddle中,现在看起来一切正常。
https://jsfiddle.net/fxf4b2cg/ https://jsfiddle.net/fxf4b2cg/
Have fun coding! 祝您编码愉快!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.