Above is the slider from Airbnb
. Is there a way to get a similar effect with Swiper?
Just set the slidesPerView
option using decimal places, eg:
var swiper = new Swiper('.swiper-container', { ... // this shows a bit of the previous/next slides slidesPerView: 1.1, centeredSlides: true, spaceBetween: 10, ... });
As long as you don't set the slideshow to loop then the first and last slides will have extra space instead of part of another slide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With