一、最终效果
二、利用原生swiper制作3D效果
1、需要注意的几个API
previous-margin:说白了就是前一张图片能露多少。
next-margin:说白了就是后一张图片能露多少。
circular:这个属性也是需要加的,加不加什么区别,一对比就知道。
2、上代码
wxml
<view class="swiper_wrapper">
<swiper
autoplay
indicator-dots
indicator-color="#8FA2EF"
indicator-active-color="#2F54EB"
class="swiper_two"
previous-margin="150rpx"
next-margin="150rpx"