-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
41 lines (36 loc) · 856 Bytes
/
app.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
38
39
40
41
var swiper = new Swiper(".mySwiper", {
direction: "horizontal",
loop: true,
pagination:{
el: ".swiper-pagination",
clickable: true,
direction: "horizontal"
},
autoplay: {
delay: 5000,
},
navigation: {
nextEl: ".rod-button-next",
prevEl: ".rod-button-prev"
}
});
var swiper = new Swiper(".mySwiper2", {
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
var swiper = new Swiper(".mySwiper3", {
slidesPerView: 3,
spaceBetween: 30,
loop: true,
autoplay: {
delay: 3000
}
});
const button = document.querySelector('#menu-button');
const menu = document.querySelector('#menu');
button.addEventListener('click', () => {
menu.classList.toggle('hidden');
});