-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.js
43 lines (36 loc) · 980 Bytes
/
style.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
// Swiper
var swiper = new Swiper(".mySwiper", {
spaceBetween: 30,
centeredSlides: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
pagination: {
el: ".swiper-pagination",
clickable: true,
},
});
// Menu abrir fechar
let menu = document.querySelector('.menu-icon');
let navbar = document.querySelector('.navbar');
menu.onclick = () => {
menu.classList.toggle("move");
navbar.classList.toggle("open-menu");
};
// Fechar menu ao rolar
window.onscroll = () =>{
menu.classList.remove("move");
navbar.classList.remove("open-menu");
};
// SrollReveal
const animate = ScrollReveal({
origin: 'top',
distance:'60px',
duration: '2500',
delay: '400',
});
animate.reveal(".nav");
animate.reveal(".home-text", {origin: "left"});
animate.reveal(".home-img", {origin: "bottom"});
animate.reveal(".ser-box, .product-box, .team-box, .book-data", {interval: 100});