swiper自滑动 自由模式 loop循环 反向滑动

发布时间 2023-05-23 16:50:19作者: {undefined}
var swiper = new Swiper(".myswiper_fx", 
      {
        slidesPerView: 'auto',
        freeMode: true,
        speed:6000,
        autoplay: {
        delay: 2500,
        disableOnInteraction: false,
        },
        loop: true,
        spaceBetween: 10,
      });

  反向滑动需要在swiper-containerdiv上加dir="rtl",即 right to left

参考文章 http://t.csdn.cn/43bjI