Swiper slides – showing end/start of previous/next slides like Airbnb Slider?

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.

Leave a Comment