-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
56 lines (50 loc) · 1.4 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
$(document).ready(() => {
$(".menu-btn ").on("click", () => {
$(".nav-bar .menu").toggleClass("menu-fade");
$(".menu-btn .top").toggleClass("top-rotate");
$(".menu-btn .middle").toggleClass("middle-fade");
$(".menu-btn .bottom").toggleClass("bottom-rotate");
});
$(".what-we-do").waypoint(
() => {
$(".what-we-do-img").addClass(" animate__fadeInRight");
$(".what-we-do .title").addClass("animate__fadeInUp");
$(".what-we-do .caption").addClass("animate__fadeInUp");
$(".what-we-do .learn-more").addClass("animate__fadeInUp");
},
{
offset: "85%",
}
);
$(".services").waypoint(
() => {
$(".services .service-card").addClass(
"animate__animated animate__fadeInUp"
);
},
{ offset: "95%" }
);
$(".services-two").waypoint(
() => {
$(".bg-cover-card").addClass("animate__animated animate__fadeInUp");
},
{ offset: "85%" }
);
$(".get-quote").waypoint(
() => {
$(".get-quote .card").addClass("animate__animated animate__fadeInUp");
},
{ offset: "85%" }
);
let length = $('.about-founder .wrapper .slide').length;
let i = 1;
setInterval(() => {
console.log(i);
$('.about-founder .wrapper .slide').css({ 'opacity': "0" });
$(`.about-founder .wrapper .slide:nth-child(${i})`).css({ 'opacity': '1' });
i ++;
if (i > length) {
i = 1;
}
}, 3000);
})