[英]Owl Carousel Slider Smoothly Not working
I created Owl Carousel Slider with auto play but it not sliding smoothly.我创建了带有自动播放功能的Owl Carousel Slider,但滑动不顺畅。 Anyone know how to create following code run smoothly?
任何人都知道如何创建以下代码运行顺利?
Javascript Code Javascript代码
var owl = $('.owl-carousel');
owl.owlCarousel({
autoPlay: 1000, //Set AutoPlay to 3 seconds
dots: true,
items: 2,
margin: 10,
});
Hy there use following code must insert this Hy有使用下面的代码必须插入这个
$(document).ready(function() { $("#owl-slideshow").owlCarousel({ // Show next and prev buttons slideSpeed: 300, paginationSpeed: 400, singleItem: true, loop: true, autoPlay: true, autoPlaySpeed: 5000, autoPlayTimeout: 5000, autoPlayHoverPause: true }); });
<div id="owl-slideshow" class="owl-carousel owl-theme"> <div class="item" style="background-image:url(assets/images/wall1.png); height: 170px !important;"></div> <div class="item" style="background-image:url(assets/images/wall2.png); height: 170px !important;"></div> <div class="item" style="background-image:url(assets/images/wall3.png); height: 170px !important;"></div> </div>
increase autoplay duration.增加自动播放时间。
var owl = $('.owl-carousel');
owl.owlCarousel({
autoPlay: 3000, //Set AutoPlay to 3 seconds
dots: true,
items: 2,
margin: 10,
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.