This commit is contained in:
epoberezkin
2023-01-27 12:07:54 +00:00
parent d9f6a54d7c
commit e421323ad8
6 changed files with 418 additions and 281 deletions
+14 -10
View File
@@ -23,34 +23,38 @@ const isMobile = {
const privateSwiper = new Swiper('.private-swiper', {
slidesPerView: 1,
slidesPerGroup: 1,
spaceBetween: 20,
// autoplay: {
// delay: 3000,
// },
direction: 'horizontal',
allowTouchMove: true,
scrollbar: {
el: ".swiper-scrollbar",
el: '.swiper-scrollbar',
draggable: true,
snapOnRelease: true,
dragSize: 100,
},
direction: 'horizontal',
navigation: {
nextEl: '.private-swiper-button-next',
prevEl: '.private-swiper-button-prev',
},
breakpoints: {
1280: {
1400: {
slidesPerView: 4,
slidesPerGroup: 4,
spaceBetween: 20,
allowTouchMove: false,
},
1024: {
1200: {
slidesPerView: 3,
slidesPerGroup: 3,
spaceBetween: 20,
allowTouchMove: true,
},
768: {
slidesPerView: 2,
slidesPerGroup: 2,
spaceBetween: 20,
allowTouchMove: true,
}
},
});