-
Notifications
You must be signed in to change notification settings - Fork 135
/
scroll-reveal.js
48 lines (45 loc) · 1.01 KB
/
scroll-reveal.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
//Insitialised the Scroll-Reveal component
ScrollReveal({
distance: "40px",
duration: 2000,
});
// Customisation of Scroll Reveal rules for different classes
ScrollReveal().reveal(
".main-nav,#sub-para,.primary-button,.features-heading-text,.head-txt,.card-1,.para-1",
{
delay: 200,
origin: "top",
}
);
ScrollReveal().reveal(".features-card,.popup-premium,.card-2,.para-2", {
delay: 300,
origin: "top",
});
ScrollReveal().reveal(".card-3,.para-3", {
delay: 400,
origin: "top",
});
ScrollReveal().reveal(".popup-basic,.popup-ultimate,.card-4,.para-4", {
delay: 500,
origin: "top",
});
ScrollReveal().reveal(".card-5,.para-5", {
delay: 600,
origin: "top",
});
ScrollReveal().reveal(".card-6", {
delay: 700,
origin: "top",
});
ScrollReveal().reveal(".hero-image,.right,.feature-image-right,.head-img", {
delay: 200,
origin: "right",
});
ScrollReveal().reveal(".feature-image-left,.left,.button-10", {
delay: 200,
origin: "left",
});
ScrollReveal().reveal(".footer-content", {
delay: 200,
origin: "bottom",
});