-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
67 lines (45 loc) · 1.26 KB
/
index.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
$(document).ready(function() {
$("#links").hide();
$("#menu-btn").click(changeNav);
function changeNav() {
$("#links").toggle(2000);
$("#menu-btn").toggleClass("turn");
}
});
$(document).ready(function() {
let number = parseInt($('.pull').text(), 10) || 0;
let interval = setInterval(function() {
$('.pull').text(number++);
if (number > 100000) {
clearInterval(interval);
}
}, 300);
});
$(document).ready(function() {
let number2 = parseInt($('.comp').text(), 10) || 0;
let interval2 = setInterval(function() {
$('.comp').text(number2++);
if (number2 > 100000) {
clearInterval(interval2);
}
}, 200);
});
//about us page js
var textWrapper=document.querySelector(".about");
textWrapper.innerHTML=textWrapper.textContent.replace(/\S/g, "<span class='line'>$&</span>")
anime.timeline({loop:false})
.add({
targets:'.about .line',
translateZ:0,
scale:[4,1],
opacity:[0,1],
easing:"easeOutExpo",
duration:2000,
delay:(e1,i)=>70*i
}).add({
targets:".about",
opacity:1,
duration:1000,
easing:"easeOutExpo",
delay:2000,
})