2 个回答
 var swiper = new Swiper('.swiper-container', {
      effect: 'coverflow',
      grabCursor: true,
      centeredSlides: true,
      slidesPerView: 'auto',
      coverflowEffect: {
        rotate: 50,
        stretch: 0,
        depth: 100,
        modifier: 1,
        slideShadows : true,
      },
      pagination: {
        el: '.swiper-pagination',
      },
    });
新手上路,请多包涵

let params = {

autoplay: 3000, // 每隔n秒滑动
loop: true, // 循环
pagination: '.swiper-pagination',
slidesPerView: 'auto', // 同时显示的slides数量
centeredSlides: true, // 居中
spaceBetween: 8, // silde间距
effect : 'coverflow', // 3D界面显示
coverflow: {
    rotate: 35, // Y轴旋转角度
    slideShadows: false // slide阴影
}

};

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题