XiYun 发表于 2020-5-30 16:17:19

模拟走马灯效果 然后鼠标悬浮停止的时候会有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>有什么解决办法么。

XiYun 发表于 2020-5-30 17:20:46

顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

zwrqq2009 发表于 2020-5-31 22:41:26

d顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶
页: [1]
查看完整版本: 模拟走马灯效果 然后鼠标悬浮停止的时候会有3秒延迟