SimplyScroll不会与InstafeedJS一起移动

时间:2017-10-12 10:26:37

标签: javascript jquery instafeedjs simplyscroll

我有一个使用InstafeedJS和SimplyScroll的网站(测试页here) - 但对于我的生活,我无法弄清楚为什么饲料不会滚动。 我是个新手,所以要好一点!

<!DOCTYPE>
<html>
<head>
  <title>Instafeed Test!</title>
  <link rel="Stylesheet" href="css/main.css">
  <link rel="stylesheet" href="css/jquery.simplyscroll.css" media="all" type="text/css">
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script type="text/javascript" src="js/jquery.simplyscroll.js"></script>
  <script type="text/javascript">
    (function($) {
      $(function() {
        $("scroller").simplyScroll();
      });
    })(jQuery);
  </script>
  <script type="text/javascript" src="js/instafeed.min.js"></script>
  <script type="text/javascript">
    var feed = new Instafeed({
      get: 'user',
      userId: 'XXXXXXXX',
      clientId: 'XXXXXXXXXXXXXXXX',
      accessToken: 'XXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXX',
      resolution: 'thumbnail',
      template: '<a href="{{link}}" target="_blank" id="{{id}}"><img src="{{image}}" /></a>',
      sortBy: 'most-recent',
      limit: 12,
      links: false
    });
    feed.run();
    </script>
</head>

<body>
  <div class="simply-scroll simply-scroll-container">
    <div class="simply-scroll-clip">
      <div id="instafeed" class="simply-scroll-list" style="width: 10000px;"></div>
    </div>
  </div>

</body>
</html>

0 个答案:

没有答案