-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
85 lines (71 loc) · 1.62 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
74
75
76
77
78
79
80
81
82
83
84
85
/* ===( CODE AASHU )=== */
const scrollRevealOption = {
distance: "50px",
origin: "bottom",
duration: 1000,
};
// header container
ScrollReveal().reveal(".header__container h1", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".header__container h2", {
...scrollRevealOption,
delay: 1000,
});
ScrollReveal().reveal(".header__container .btn", {
...scrollRevealOption,
delay: 1500,
});
ScrollReveal().reveal(".header__container img", {
...scrollRevealOption,
origin: "right",
});
// why container
ScrollReveal().reveal(".why__container .section__header", {
...scrollRevealOption,
delay: 500,
});
ScrollReveal().reveal(".why__container p", {
...scrollRevealOption,
delay: 1000,
});
ScrollReveal().reveal(".why__container li", {
...scrollRevealOption,
delay: 1500,
interval: 500,
});
ScrollReveal().reveal(".why__container img", {
...scrollRevealOption,
origin: "left",
});
// hero container
ScrollReveal().reveal(".hero__card", {
...scrollRevealOption,
interval: 500,
});
// classes container
ScrollReveal().reveal(".classes__image", {
duration: 1000,
interval: 500,
});
// membership container
ScrollReveal().reveal(".membership__card", {
...scrollRevealOption,
interval: 500,
});
// stories container
ScrollReveal().reveal(".stories__card", {
...scrollRevealOption,
interval: 500,
});
// posts container
ScrollReveal().reveal(".posts__card", {
...scrollRevealOption,
interval: 500,
});
// photos container
ScrollReveal().reveal(".photos__card", {
duration: 1000,
interval: 500,
});