<div class="swiper mySwiper">
<div class="swiper-wrapper">
<div class="swiper-slide slide_1" data-fancybox="galery_0" href="./css/img/1_1.jpg">
<img class="slide_rout_text" src="./css/img/glass_text.png" alt="">
<div class="slide_details">
<p>Подробнее</p>
</div>
</div>
<div class="swiper-slide slide_2" data-fancybox="galery_2" href="./css/img/main_2.jpg">
<img class="slide_rout_text" src="./css/img/glass_text.png" alt="">
<div class="slide_details">
<p>Подробнее</p>
</div>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
const swiper = new Swiper(".mySwiper", {
slidesPerView: 3,
variableWidth: true,
swipeToSlide: true,
breakpoints: {
1024: {
grid: {
rows: 2,
},
},
900: {
// loop: true,
grid: {
rows: 2,
},
slidesPerView: 2,
pagination: {
el: ".swiper-pagination",
clickable: true,
dynamicBullets: true
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
}
,
700: {
// loop: true,
grid: {
rows: 1,
},
slidesPerView: 2,
pagination: {
el: ".swiper-pagination",
clickable: true,
dynamicBullets: true
},
}
,
300: {
loop: true,
grid: {
rows: 1,
},
centerInsufficientSlides: true,
centeredSlidesBounds: true,
slidesPerView: 1,
pagination: {
el: ".swiper-pagination",
clickable: true,
dynamicBullets: true
},
rewind: true,
}
}
});