解决方法

<script> 
var mySwiper = new Swiper('.swiper-container',{
  autoplay: {
    disableOnInteraction: false,
    delay:2000,
  },
})
</script>

用户操作swiper之后,是否禁止autoplay。默认为true:停止。

如果设置为false,用户操作swiper之后自动切换不会停止,每次都会重新启动autoplay。

操作包括触碰,拖动,点击pagination等。

 

相关文章:

  • 2021-05-29
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案