0
I have the following Swiper:
var swiperBanner = new Swiper('.swiper-container-banner', {
slidesPerView: 1,
speed: 1200,
loop: true,
grabCursor: true,
freeMode: false,
preventClicks: true,
autoplay: {
delay: 5000
},
pagination: {
el: '.swiper-pagination',
clickable: true
}
});
in the slide images I have some with the class 'mobile' and others 'desktop', I would like to remove the mobile slides on larger screens, and the desktop on smaller screens, more I am not finding a way, already tried display: none
but it didn’t work
Use Srcset on the slíder images I think you can solve to your bag the question of an image for each screen size
– hugocsl