-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (43 loc) · 1.02 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
var typed= new Typed(".text",{
strings:["Frontend Developer","Graphics Designer", "Web Developer"],
typeSpeed:100,
backSpeed:100,
backDelay:1000,
loop:true
});
let number1 = document.getElementById("number1");
let counter= 0;
setInterval(()=>{
if(counter == 85){
clearInterval();
}else{
counter += 1;
number1.innerHTML = counter + "%";}
},20);
let number2 = document.getElementById("number2");
let count= 0;
setInterval(()=>{
if(count == 70){
clearInterval();
}else{
count += 1;
number2.innerHTML = count + "%";}
},20);
let number3 = document.getElementById("number3");
let cnt= 0;
setInterval(()=>{
if(cnt == 75){
clearInterval();
}else{
cnt += 1;
number3.innerHTML = cnt + "%";}
},20);
let number34 = document.getElementById("number34");
let cntr= 0;
setInterval(()=>{
if(cntr == 80){
clearInterval();
}else{
cntr += 1;
number4.innerHTML = cntr + "%";}
},20);