сделал gym с адаптивностью
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user