当滑动条滑动手动更改时隐藏特定 div

时间:2021-08-01 16:25:13

标签: javascript jquery swiper swiperjs swiper.js

Swiper 滑块:在开始自动播放交互后,我想隐藏 div(div.hide-all) 以及使用触摸屏设备时:手动滑动更改 hide(div.hide-all) 示例:http://jsfiddle.net/u53moy4w/15/

if (window.innerWidth < 1200) {
        var quoteSwiper = new Swiper('.quote-slider', {
            on: {
                    autoplay/touchmove/slidechange: function () {
                        $('.hide-all').slideUp();
                    },
                }

            });
        }

0 个答案:

没有答案