// 滚动图
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');
}
});
分享名称:swiper手滑导航圆点不同步
文章URL:https://www.cdcxhl.com/article24/gipcce.html
成都网站建设公司_创新互联,为您提供网站内链、商城网站、网站策划、品牌网站建设、响应式网站、网站收录
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联