Swiper does not play automatically

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/hua_ban_yu/article/details/82705965

When using the plug-in to Swiper carousel picture, carousel find Swiper after one can not automatically rotate, after the inquiry found 4.x version Swiper does not support loop: true use, you can use directly autoplay: true substitute,

Solution: Set to play automatically use version 4.x Swiper need to remove the loop: true, use autoplay: true Set Autoplay

Autoplay Code:

mySwiper new new Swiper = var ( 'Swiper-Container.', {
          AutoPlay: to true, // Optional, slides automatically
  }) 

Guess you like

Origin blog.csdn.net/hua_ban_yu/article/details/82705965