In this content, we will introduce the page turning animation on the swiper page-3D overlay flow effect.
First build the swiper page and set the CSS style. In order to see the effect, this chapter still adds a background image to the slide.
Then add attributes and set animations in the same way as our previous 3D block effect.
var swiper = new Swiper('.swiper-container',{ pagination:'.swiper-pagination', grabCursor:true, centeredSlides:true, slidesPerView:'auto', effect:'coverflow', //动画效果:3D覆盖流效果 coverflow:{ rotate:50, stretch:0, depth:100, modifier:1, slideShadows:true } });
What are we setting in our animation settings?
coverflow:{ rotate:50, //旋转的角度 stretch:0, //拉伸 depth:100, //深度 modifier:1, //修正值(该值越大前面的效果越明显) slideShadows:true //页面阴影效果 }
It is best to use our animation effects together with group display. The effect is not good when used alone.
The above is the basic use of swiper (seventeen). For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!