|
horizontalSwiper2 = new Swiper('.horizontal-container2', {
observer: true,
observeParents: true,
centeredSlides: true,
slidesPerView: 4,
spaceBetween: 0,
loop: true,
loopedSlides: 14,
// freeMode:true,
speed: 3000,
on: {
slideChangeTransitionEnd: function () {
horizontalSwiper.slideTo(this.activeIndex, 1000, false);
},
// slideChangeTransitionStart: function () {
// horizontalSwiper.slidePrev();
// },
},
autoplay: {
delay: 0,
disableOnInteraction: false,
},
// controller: {
// control: horizontalSwiper,
// },
pagination: {
el: '.horizontal-container2 .swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
这是我的swiper代码,怎么解决呢
|
|