【问题标题】:How to add two different effects to SwiperJS?如何给 SwiperJS 添加两种不同的效果?
【发布时间】:2020-07-02 13:48:22
【问题描述】:

我想在手动滑动或使用导航按钮时将“淡入淡出”设置为自动播放过渡的过渡效果,并将“滑动”设置为过渡。
这可能吗 ?怎样才能实现呢?

【问题讨论】:

标签: javascript swiper swiperjs


【解决方案1】:

您可以在设置中使用此代码 效果:“淡出”, 速度:20,

  loop: true,
  fadeEffect: { crossFade: true },
  slidesPerView: 1,
  navigation: {
    nextEl: ".swiper-button-next",
    prevEl: ".swiper-button-prev"
  },

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多