解决swiper插件点击/拖动按钮或页面后不自动轮播的问题

2022-07-15  本文已影响0人  禾苗种树
autoplay: { disableOnInteraction: false }
$(function(){
        var swiper = new Swiper('.swiper-container', {
                // autoplay:true,
               
                loop:true,
                pagination: {
                    el: '.swiper-pagination',
                    clickable: true,
                   
                },
                navigation: {
                nextEl: '.swiper-button-next',
                prevEl: '.swiper-button-prev',
                },
                autoplay: { disableOnInteraction: false }
            });

         
    })
上一篇下一篇

猜你喜欢

热点阅读