-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
37 lines (33 loc) · 858 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
let navbar = document.querySelector('.navbar');
document.querySelector('#menu-btn').onclick = () => {
navbar.classList.toggle('active');
searchForm.classList.remove('active');
}
let searchForm = document.querySelector('.search-form');
document.querySelector('#search-btn').onclick = () => {
searchForm.classList.toggle('active');
navbar.classList.remove('active');
}
window.onscroll = () => {
navbar.classList.remove('active');
searchForm.classList.remove('active');
}
var swiper = new Swiper(".reviews-slider", {
spaceBetween: 20,
loop: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
breakpoints: {
640: {
slidesPerview: 1,
},
768: {
slidesPerview: 2,
},
1024: {
slidesPerview: 3,
},
}
});