我很擅长这个。 我正在尝试使用Zurb Foundation 4的Super Scrollorama。根据:
http://johnpolacek.github.io/superscrollorama/
首先,链接到jQuery CDN,然后嵌入TweenMax.js和SuperScrollorama。
但是,我似乎无法超越第一步? 当我尝试将Super Scrollorama添加到Foundation 4项目时,只是导入JQuery似乎打破了Foundation 4.TweenMax.js链接就好了。
我正在使用此代码链接它:
<script src="js/superscrollorama/greensock/TweenMax.min.js" type="text/javascript"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>有任何想法吗? 这可能吗? 我在Google上进行了搜索,似乎没有任何教程显示如何使用Zurb Foundation 4的Super Scrollorama。
I'm pretty new at this. I'm trying to use Super Scrollorama with Zurb Foundation 4. According to:
http://johnpolacek.github.io/superscrollorama/
First, link to the jQuery CDN and then embed TweenMax.js and SuperScrollorama.
However, I can't seem to get past the first step? When I try to add Super Scrollorama to a Foundation 4 project, just importing JQuery seems to break Foundation 4. TweenMax.js links just fine.
I'm using this code to link it:
<script src="js/superscrollorama/greensock/TweenMax.min.js" type="text/javascript"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>Any ideas? Is this possible? I did a search on Google and there doesn't seem to be any tutorials showing how to use Super Scrollorama with Zurb Foundation 4.
最满意答案
我终于弄明白了。
这个脚本链接:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>Muse出现在 Zurb Foundation 4脚本链接之前:
<script src="js/foundation.min.js"></script所以,正确的实现将如下所示:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src="js/foundation.min.js"></script>如此疯狂的小巧,愚蠢的细节造成如此巨大的浪费时间!
如果您添加AFTER之后的链接,那么Zurb Foundation 4将无效。
I finally figured it out.
This script link:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>Muse appear BEFORE the Zurb Foundation 4 script link:
<script src="js/foundation.min.js"></scriptSo, the correct implementation would look like this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src="js/foundation.min.js"></script>Such a crazy small, stupid detail cause such a huge waste of time!
If you add the link AFTER, then Zurb Foundation 4 WILL NOT WORK.
更多推荐
发布评论