var mySwiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: true, // 循环模式选项
autoplay: {
disableOnInteraction: false, //开启这个就可以自动滑动了
delay: 3000,
},
effect: 'coverflow',
// 如果需要分页器
pagination: {
el: '.swiper-pagination',
}
});
swiper手动滑动后,自动滑动失效
猜你喜欢
转载自www.cnblogs.com/zinuokeji/p/12892001.html
今日推荐
周排行