猫头鹰轮播速度不会改变

时间:2018-07-26 13:14:45

标签: javascript owl-carousel

我正在使用Owl Carousel库作为合作伙伴页面上的滑块。除了设置过渡的频率和速度之外,它的效果都很好。

我已经按照文档进行操作并拥有脚本,但是它似乎无法正常工作。以下是我正在使用的HTML和JS。我还链接到以下页面:http://www.circuitclinicaltesting.com/our-partners.php

就像我说的,我要做的只是改变幻灯片的速度和频率,但是似乎不起作用。

HTML

User

JS

  <div class="owlcarousel">
  <section class="partner_slider slider_section header_height">
      <ul id="main-slider" class="owl-carousel main_slider">

          <div class="display-table">
            <div class="table-cell">1
              <div class="container">
                <div class="col-md-1"></div>
                <div class="slider_content">
                  <h2 class="text-left txt_white">PARTNER PERSPECTIVE</h2>
                  <h3>"Circuit Clinical provides us with the opportunity to shift the current paradigm when it comes to clinical research. They have been able to integrate research within our practice without the upfront cost."</h3>
                  <h2 class="txt_white">Dr. Raul Vazquez, MD</h2>
                  <p>Urban Family Practice</p>
                </div>
              </div>
            </div>
          </div>


          <div class="display-table">
            <div class="table-cell">
              <div class="container">
                <div class="col-md-1"></div>
                  <div class="slider_content">
                   <h2 class="text-left txt_white">PARTNER PERSPECTIVE</h2>
                   <h3>“Until now, I haven't had the opportunity to participate in clinical research because we didn’t have the infrastructure in place to do so. Circuit Clinical has provided the tools and infrastructure while also bringing the trials to us so we can begin enrollment immediately.”</h3>
                    <h2 class="txt_white">Dr. Dennis B. Chugh, MD</h2>
                    <p>Northtowns Cardiology</p>
                 </div>
              </div>
            </div>
          </div>
      </ul>
  </section>
  </div>
</div>

1 个答案:

答案 0 :(得分:0)

我设法弄清楚了。它正在寻找autoplayTimeout。在脚本设置中添加以下内容可以解决该问题!

    autoplayTimeout: 10000,        
    smartSpeed: 1000,