сделал gym с адаптивностью

This commit is contained in:
Kirill Pet
2024-12-17 18:54:39 +03:00
parent cd23fb02ae
commit 077f5baf53
8 changed files with 229 additions and 6 deletions

View File

@@ -0,0 +1,24 @@
'use strict';
window.addEventListener('resize', (e) => {
if (window.innerWidth) {
}
});
const swiper = new Swiper('.gym-swiper', {
direction: 'horizontal',
breakpoints: {
320:{
slidesPerView: 1.20,
spaceBetween: 24,
},
996: {
slidesPerView: 3
},
1920: {
slidesPerView: 3
},
}
});