This commit is contained in:
GP_DEV
2025-08-01 10:07:08 +03:00
parent 21562852ca
commit 7d7a28e789
54 changed files with 4554 additions and 6928 deletions

View File

@@ -22,17 +22,22 @@ function initGalleryBlock(blockId) {
thumbnailSwipers[tabId] = new Swiper(`#${blockId} #thumbnail-swiper-${tabId}`, {
slidesPerView: 'auto',
spaceBetween: 24,
spaceBetween: 5,
freeMode: true,
grabCursor: true,
watchSlidesProgress: true,
breakpoints: {
768: {
spaceBetween: 24
}
}
});
swipers[tabId] = new Swiper(`#${blockId} #swiper-${tabId}`, {
slidesPerView: 'auto',
spaceBetween: 24,
centeredSlides: true,
initialSlide: 1,
spaceBetween: 12,
centeredSlides: false,
initialSlide: 0,
scrollbar: {
el: `#swiper-scrollbar-${tabId}`,
draggable: true,
@@ -48,6 +53,11 @@ function initGalleryBlock(blockId) {
updateThumbnails(tabId, this.realIndex);
centerThumbnail(tabId, this.realIndex);
}
},
breakpoints: {
768: {
spaceBetween: 24
}
}
});