swiper手滑导航圆点不同步
// 滚动图 var mySwiper = new Swiper('.swiper-container', { // 如果需要分页器 pagination: { el: '.swiper-pagination', }, onSlideChangeEnd: function (swiper) { // pagination BUG var activeIndex = swiper.activeIndex; $('.swiper-pagination') .find('span') .eq(activeIndex) .addClass('swiper-pagination-bullet-active') .siblings() .removeClass('swiper-pagination-bullet-active'); } });
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。