swiper

new Swiper('.swiper2', {
            autoplay: true,
            effect: 'coverflow',
            grabCursor: true,
            watchSlidesProgress: true,
            centeredSlides: true,
            speed: 1000,
            autoplayDisableOnInteraction: false,
            loop: true,
            slidesPerView: 2,
            coverflowEffect: {
                rotate: 0,
                stretch: -20,
                depth: 80,
                modifier: 2,
                slideShadows: true
            }
        })

 

修改参数 

coverflowEffect 达到预期的效果

 

posted @ 2019-04-12 14:00  sanye-疯序员  阅读(147)  评论(0编辑  收藏  举报