twa*_*wan 1 javascript jquery owl-carousel
I'm trying to shorten the speed of the autoplay on an owl carousel (I'm using owl carousel 1), but it's always stuck at 5 seconds. On the website (which is broken) it says you can add an integer after autoplay: but it doesn't matter what number I add, it always takes 5 seconds to play.
And I should mention that autoPlay (with capital P) does not work for me like it's shown on their website. Only if I use autoplay it actually auto plays.
These are the settings of my owl carousel:
$("#owl-mockup").owlCarousel({
loop: true,
autoplay: 3000,
responsiveClass:true,
responsive:{
0:{
items:1,
},
600:{
items:1,
},
1000:{
items:3,
}
}
});
Run Code Online (Sandbox Code Playgroud)
Why is it not listening to the number added?
尝试使用:
autoplay: true,
autoplayTimeout: 3000
Run Code Online (Sandbox Code Playgroud)
反而:
autoplay: 3000
Run Code Online (Sandbox Code Playgroud)
在 owl 文档中说自动播放需要一个布尔值。无论如何,为了更改时间,我使用了 autoplayTimeout 并且它工作得很好。
| 归档时间: |
|
| 查看次数: |
10167 次 |
| 最近记录: |