-
Notifications
You must be signed in to change notification settings - Fork 0
/
myscript.js
70 lines (63 loc) · 1.35 KB
/
myscript.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
let navbar = document.querySelector('.header .navbar');
document.querySelector('#menu-btn').onclick = () =>{
navbar.classList.toggle('active');
}
window.onscroll = () =>{
navbar.classList.remove('active');
}
document.querySelectorAll('.contact .row .faq .box h3').forEach(faqBox => {
faqBox.onclick = () =>{
faqBox.parentElement.classList.toggle('active');
}
});
var swiper = new Swiper(".home-slider", {
loop:true,
effect: "coverflow",
spaceBetween: 30,
grabCursor: true,
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows: false,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
var swiper = new Swiper(".gallery-slider", {
loop:true,
effect: "coverflow",
slidesPerView: "auto",
centeredSlides: true,
grabCursor: true,
coverflowEffect: {
rotate: 0,
stretch: 0,
depth: 100,
modifier: 2,
slideShadows: true,
},
pagination: {
el: ".swiper-pagination",
},
});
var swiper = new Swiper(".reviews-slider", {
loop:true,
slidesPerView: "auto",
grabCursor: true,
spaceBetween: 30,
pagination: {
el: ".swiper-pagination",
},
breakpoints: {
768: {
slidesPerView: 1,
},
991: {
slidesPerView: 2,
},
},
});