Javascript 推特引导旋转木马-如何实现连续慢速滚动?

Javascript 推特引导旋转木马-如何实现连续慢速滚动?,javascript,html,css,twitter-bootstrap,twitter-bootstrap-3,Javascript,Html,Css,Twitter Bootstrap,Twitter Bootstrap 3,我使用的是Twitter Bootstrap 3,有一个8幅图像的旋转木马。显示4,然后跳到下一个4。此时,您必须使用左右箭头按钮,或等待片刻,等待传送带更改。我怎样才能使旋转木马中的项目连续、缓慢地滚动?我不希望它从一组4跳到下一组,我想要一个连续的滚动 您需要做的第一件事是将以下代码复制并粘贴到HTML文件中。我们鼓励您将转盘示例通用id更改为更独特的id。如果这样做,请确保在整个标记中正确引用它。我们还使用了占位符图像,您需要将其替换为所需的滑块图像 在该示例中,旋转木马可能会向左滚动一段

我使用的是Twitter Bootstrap 3,有一个8幅图像的旋转木马。显示4,然后跳到下一个4。此时,您必须使用左右箭头按钮,或等待片刻,等待传送带更改。我怎样才能使旋转木马中的项目连续、缓慢地滚动?我不希望它从一组4跳到下一组,我想要一个连续的滚动

您需要做的第一件事是将以下代码复制并粘贴到HTML文件中。我们鼓励您将转盘示例通用id更改为更独特的id。如果这样做,请确保在整个标记中正确引用它。我们还使用了占位符图像,您需要将其替换为所需的滑块图像


在该示例中,旋转木马可能会向左滚动一段时间,然后开始从左侧反馈-我希望它从左向右移动。谢谢您的回复。不,不完全是我需要的。我需要旋转木马来连续滚动。基本上,当旋转木马更改为新项目时,我不希望暂停。
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    <li data-target="#carousel-example-generic" data-slide-to="3"></li>
    <li data-target="#carousel-example-generic" data-slide-to="4"></li>
      <li data-target="#carousel-example-generic" data-slide-to="5"></li>
      <li data-target="#carousel-example-generic" data-slide-to="6"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
    <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
    <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
         <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
              <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
                   <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
                        <div class="item">
      <img src="http://placehold.it/1200x315" alt="...">
      <div class="carousel-caption">
          <h3>Caption Text</h3>
      </div>
    </div>
  </div>

  <!-- Controls -->
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
  </a>
</div> <!-- Carousel -->
$(window).load(function () {
    $("#divID").endlessScroll({ width: '100%', height: '100px', steps: -2, speed: 40, mousestop: true });
});