Swiper中文论坛
标题:
swiper设置speed的之后,图片滑动的时,上一页下一页按钮失效
[打印本页]
作者:
793505879@q
时间:
2020-11-25 17:14
标题:
swiper设置speed的之后,图片滑动的时,上一页下一页按钮失效
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代码,怎么解决呢
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2