swiper

Open full view…

startAutoplay(), stopAutoplay() doesn't work

mobi
Fri, 29 Jul 2016 11:20:37 GMT

Hello, I have two Buttons to enabel and disable the autoplay of the slider. Unfortunately it doesn't work. Here is my Code: var mySwiper = new Swiper ('.swiper3', { scrollbar: '.swiper-scrollbar', // Navigation arrows nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', spaceBetween: 20, slidesPerView : 'auto', centeredSlides: true }); $('.swiper-play').click(function(){ mySwiper.startAutoplay(); }); $('.swiper-stop').click(function() { mySwiper.stopAutoplay(); }); Where is my error??

francy
Thu, 09 Mar 2017 09:04:35 GMT

I have the same error