我尝试在swiper上使用延迟,但它忽略了参数,我尝试更改毫秒数,但没有任何变化。
也许这是某种冲突在我的网站:https://www.warriorshop.com.br/
var swiper = new Swiper('.swiper-container', {
pagination: {
el: '.swiper-pagination',
clickable: true,
},
loop: true,
speed: 4000,
autoplay: {
delay: 20000,
},
});发布于 2019-05-30 12:12:39
自动播放需要一个布尔值,这不是一个选项,我找到了一个有效的选项。这在文档中已经很清楚了
所以你只需要将这个参数添加到你的div class="swiper-slide"中,它就可以工作了:
data-swiper-autoplay="2000"
https://stackoverflow.com/questions/52297190
复制相似问题