-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
59 lines (49 loc) · 1.23 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
const scrollRevealOption = {
distance: "50px",
origin: "bottom",
duration: 1000,
};
// Header container
ScrollReveal().reveal(".header__container h1", scrollRevealOption);
ScrollReveal().reveal(".header__container h4", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".header__container .btn", {
...scrollRevealOption,
delay: 1000,
});
// About container
ScrollReveal().reveal(".about__container .section__header", scrollRevealOption);
ScrollReveal().reveal(".about__container .section__subheader", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".about__container .about__flex", {
...scrollRevealOption,
delay: 1000,
});
ScrollReveal().reveal(".about__container .btn", {
...scrollRevealOption,
delay: 1500,
});
// Discover container
ScrollReveal().reveal(".discover__card", {
...scrollRevealOption,
interval: 500,
});
ScrollReveal().reveal(".discover__card__content", {
...scrollRevealOption,
interval: 500,
delay: 200,
});
// Blog container
ScrollReveal().reveal(".blogs__card", {
...scrollRevealOption,
interval: 400,
});
// Journals container
ScrollReveal().reveal(".journals__card", {
...scrollRevealOption,
interval: 400,
});