var mySwiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: true, // 循环模式选项
autoplay: {
disableOnInteraction: false, //开启这个就可以自动滑动了
delay: 3000,
},
effect: 'coverflow',
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
}
});
swiper手动滑动后,自动滑动失效
最新推荐文章于 2022-09-15 09:37:18 发布