I'm trying to have 3 visible slides in the page. The problem is that whenever there are less than 3 slides those slides are duplicated to fill also the empty spaces so, for instance, if I have just one slide it shows three identical copies of the same slide. Is there any way to avoid that ? I would like just the single slide to be shown.
Here's the configuration of the swiper:
var swiper = new Swiper('.campaign-slider-two', {
slidesPerView: 3,
spaceBetween: 0,
autoplay: {
delay: 5000,
disableOnInteraction: false,
},
breakpoints: {
768: {
slidesPerView: 2,
},
767: {
slidesPerView: 1,
},
},
pagination: {
el: '.campaign-pagination',
clickable: true,
},
loop: true,
});
I took a look at the Swiper documentation but I couldn't find anything about this kind of configurations. How to solve this issue?