<script> var mySwiper = new Swiper('.swiper-container',{ autoplay : 1000, autoplayDisableOnInteraction : false, }) $('#btn1').click(function(){ mySwiper.params.autoplay=200; }) </script>