javascript 带有猫头鹰轮播脚本的无尽滑块

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23496209/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 00:59:25  来源:igfitidea点击:

endless slider with owl carousel script

javascriptjqueryowl-carousel

提问by Stiller Eugen

I'd like to build an endless slider with owl carousel (http://www.owlgraphic.com/owlcarousel/). I have a slider with single item. My Settings:

我想用 owl carousel ( http://www.owlgraphic.com/owlcarousel/)构建一个无尽的滑块。我有一个带有单个项目的滑块。我的设置:

items: 1,
itemsDesktop: [960,1],
singeItem: true,
autoPlay : true,
rewindSpeed : 10,
rewindNav : true,
navigation: true,
pagination: false

How can I build it that it start after the last pic without rewind to the first image? Is this possible?

如何构建它在最后一张图片之后开始而不回退到第一张图片?这可能吗?

回答by Rituraj ratan

owl carousel has updated his plugin and launched 2nd version in this it give us endless loop slider and many more check it out. http://www.owlcarousel.owlgraphic.com/

owl carousel 更新了他的插件并推出了第二个版本,它为我们提供了无限循环滑块和更多检查。http://www.owlcarousel.owlgraphic.com/

By this your problem will resolve.

这样你的问题就解决了。

回答by Dwiraj Chauhan

$("#owl-demo").owlCarousel({
   autoPlay: 3000, //Set AutoPlay to 3 seconds
   items : 4,
   rewindNav:false //**Change this property
});