swiper3多行显示时设置loop循环无效
初始化swiper时,设置了slidesPerColumn: 2,同时设置了loop: true,但是无法实现一直循环切换的效果,而是切换到末尾就停止循环,这个是什么问题?
$(document).ready(function(){
var swiper3 = new Swiper('.brand-list', {
loop: true,
loopAdditionalSlides:1,
autoplay:2000,
nextButton: '.swiper-button-next-custom-2',
prevButton: '.swiper-button-prev-custom-2',
slidesPerView: 5,
slidesPerColumn: 2,
paginationClickable: false,
spaceBetween: 15,
freeMode: true,
breakpoints: {
640: {
slidesPerView: 1,
},
991: {
slidesPerView: 3,
}
}
});
}); slidesPerColumn目前还不兼容loop模式(loop: true)
你自己看看API的介绍
页:
[1]