-
Notifications
You must be signed in to change notification settings - Fork 6
/
scrollReveal.js
54 lines (46 loc) · 1.05 KB
/
scrollReveal.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
const slideLeft = {
distance: "150px",
origin: "left",
opacity: 0,
delay: 400,
reset: true,
duration: 700,
};
const slideRight = {
distance: "150px",
origin: "right",
opacity: null,
opacity: 0,
delay: 200,
duration: 700,
reset: true,
};
const slideUp = {
distance: "150px",
origin: "bottom",
opacity: 0,
delay: 400,
reset: true,
duration: 700,
};
const slideDown = {
distance: "150px",
origin: "top",
opacity: 0,
delay: 200,
duration: 700,
reset: true,
};
//Header Content
ScrollReveal().reveal(".header-content-left", slideLeft);
ScrollReveal().reveal(".header-content-right", slideRight);
//App preview Section
ScrollReveal().reveal(".app-preview-left", slideDown);
ScrollReveal().reveal(".app-preview-right", slideUp);
//Track Your Spending Section
ScrollReveal().reveal(".track-your-spending-left", slideLeft);
ScrollReveal().reveal(".track-your-spending-right", slideRight);
// Get in touch Section
ScrollReveal().reveal(".get-in-touch", slideUp);
// Footer
ScrollReveal().reveal(".footer-container", slideLeft);