Answer the question
In order to leave comments, you need to log in
How can swiper be activated at a certain resolution?
Hello. Tell me please. Is it possible somehow to initialize swiper only at a resolution greater than 900px, and if it is less to remove it and make the block normal without swiper, so that before resizing it changes back and forth and without reloading the page?
Answer the question
In order to leave comments, you need to log in
enabled helped me ( https://swiperjs.com/swiper-api#methods-and-properties ):
const swiper = new Swiper(".main-slider", {
enabled: false,
breakpoints: {
1490: {
enabled: true ,
slidesPerView: 1,
speed: 800,
},
},
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question