swiper fix
This commit is contained in:
parent
84e71856e4
commit
ec6e8fb6be
@ -54,33 +54,7 @@ if (targetSlide !== null && !isNaN(targetSlide)) {
|
||||
localStorage.removeItem('targetSlide');
|
||||
}
|
||||
|
||||
// вложенный свайпер
|
||||
const innerSwiper = document.querySelector('.innerSwiper')
|
||||
if (innerSwiper) {
|
||||
var innerSwiperObj = new Swiper(innerSwiper, {
|
||||
effect: "coverflow",
|
||||
grabCursor: true,
|
||||
centeredSlides: true,
|
||||
slidesPerView: "auto",
|
||||
loop: true,
|
||||
spaceBetween: 70,
|
||||
coverflowEffect: {
|
||||
rotate: 0,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
},
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function truncateText(text, wordLimit) {
|
||||
const words = text.split(' ');
|
||||
@ -146,6 +120,33 @@ function truncateText(text, wordLimit) {
|
||||
let projectSlide = createProjectSlide(project)
|
||||
projectSlides.appendChild(projectSlide)
|
||||
}
|
||||
// вложенный свайпер
|
||||
const innerSwiper = document.querySelector('.innerSwiper')
|
||||
if (innerSwiper) {
|
||||
var innerSwiperObj = new Swiper(innerSwiper, {
|
||||
effect: "coverflow",
|
||||
grabCursor: true,
|
||||
centeredSlides: true,
|
||||
slidesPerView: "auto",
|
||||
loop: true,
|
||||
spaceBetween: 70,
|
||||
coverflowEffect: {
|
||||
rotate: 0,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
},
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
});
|
||||
}
|
||||
})();
|
||||
// Услуги
|
||||
(async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user