-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
73 lines (67 loc) · 1.92 KB
/
main.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
70
71
72
73
const menuBtn = document.getElementById("menu-btn")
const navLinks = document.getElementById("nav-links");
const menuBtnIcon = menuBtn.querySelector("i");
menuBtn.addEventListener("click", (e) => {
navLinks.classList.toggle("open");
const isOpen = navLinks.classList.contains("open");
menuBtnIcon.setAttribute("class", isOpen ? "ri-close-line" : "ri-menu-line");
});
navLinks.addEventListener("click", (e) => {
navLinks.classList.remove("open");
menuBtnIcon.setAttribute("class", "ri-menu-line");
});
const scrollRevealOption = {
distance: "50px",
origin: "bottom",
duration: 1000,
};
ScrollReveal().reveal(".header_container h2", {
...scrollRevealOption,
});
ScrollReveal().reveal(".header_container h1", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".header_container p", {
...scrollRevealOption,
delay: 1000,
});
ScrollReveal().reveal(".header_container .header_btns", {
...scrollRevealOption,
delay: 1500,
});
ScrollReveal().reveal(".header_image img", {
duration: 1000,
delay: 2000,
});
ScrollReveal().reveal(".app_image-1, .app_image-3", {
...scrollRevealOption,
origin: "left",
});
ScrollReveal().reveal(".app_image-2", {
...scrollRevealOption,
origin: "right",
});
ScrollReveal().reveal(".app_card h5", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".app_card h4", {
...scrollRevealOption,
delay: 1000,
});
ScrollReveal().reveal(".app_card p", {
...scrollRevealOption,
delay: 1500,
});
ScrollReveal().reveal(".download__container .section__header", {
...scrollRevealOption,
});
ScrollReveal().reveal(".download__container p", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".download__container .download__btns", {
...scrollRevealOption,
delay: 1000,
});