swiper 的起始位置和结束位置?

Aly*_*ssa 1 swiper.js

我想知道是否有办法定位偏离中心的滑动器(滑块)。所以最初不是一直穿过屏幕,也不是在中心,而是偏移。谢谢!

Aly*_*ssa 6

解决了!我需要添加参数:

slidesOffsetAfter: n // desire number
Run Code Online (Sandbox Code Playgroud)

或者

slidesOffsetBefore: n // desire number
Run Code Online (Sandbox Code Playgroud)

来源: https: //swiperjs.com/swiper-api