模拟走马灯效果 然后鼠标悬浮停止的时候会有3秒延迟
<script>var Swiper_landscape = new Swiper('.swiper-landscape', {
spaceBetween : 20,
autoplay : {
delay: 1,
disableOnInteraction: false,
},
speed:3000,
loop : true,
freeMode:true,
slidesPerView : 4,
slidesPerGroup : 1,
touchMoveStopPropagation : false
});
// 鼠标移入停止自动滚动/鼠标移出开始自动滚动
$('.swiper-landscape').mouseover(function(){
Swiper_landscape.autoplay.stop();
})
$('.swiper-landscape').mouseout(function(){
Swiper_landscape.autoplay.start();
})
</script>有什么解决办法么。
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶 d顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
页:
[1]