сделал swiper-reviews-img

This commit is contained in:
Kirill Pet
2024-12-20 17:00:34 +03:00
parent 81faffc0a1
commit 74fb21358e
4 changed files with 80 additions and 2 deletions

View File

@@ -40,6 +40,20 @@ const reviewsSwiper = new Swiper('.reviews-swiper', {
}
})
let reviewsSwiperImg = new Swiper(".swiper-reviews-img", {
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
renderBullet: function (index, className) {
return '<span class="' + className + '">' + "</span>";
},
},
});
const projectsSwiper = new Swiper('.projects-swiper', {
direction: 'horizontal',
breakpoints: {
@@ -284,6 +298,8 @@ phoneInputs.forEach(phoneInput => {
});
})
// masks end
// pc menu
let blocksMenu = document.querySelectorAll('.header-menu-list-next__block');
@@ -332,6 +348,8 @@ blocksMenu.forEach(block =>{
})
// pc menu end
// resize
window.addEventListener('resize', () => {
let screenWidth = window.screen.width;