其他分享
首页 > 其他分享> > Swiper更新参数

Swiper更新参数

作者:互联网

swiperInstance.update({
        slidesPerView: status == "pc" ? 1.354 : 1.253,
        coverflowEffect:
          status == "pc"
            ? {
                rotate: 0,
                stretch: "34%",
                depth: 841,
                // modifier: 2,
                slideShadows: false,
              }
            : {
                rotate: 0,
                stretch: "34%",
                depth: 500,
                // modifier: 2,
                slideShadows: false,
              },
      });

 

标签:status,34%,rotate,false,stretch,更新,pc,参数,Swiper
来源: https://www.cnblogs.com/Jarsmine/p/16442582.html