-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylepageloader.css
60 lines (59 loc) · 1.24 KB
/
stylepageloader.css
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
/* Align items to the center-- just for presentation purpose*/
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
/* 1.Style the svg circles */
#page-loader{
width: 150px;
height: 150px;
}
#page-loader circle{
fill: none;
stroke-width: 10;
stroke-linecap: round;
}
#page-loader circle:nth-child(1){
stroke: #ffc114;
stroke-dasharray: 50;
}
#page-loader circle:nth-child(2){
stroke: #ff5248;
stroke-dasharray: 100;
}
#page-loader circle:nth-child(3){
stroke: #19cdca;
stroke-dasharray: 180;
}
#page-loader circle:nth-child(4){
stroke: #4e88e1;
stroke-dasharray: 350;
stroke-dashoffset: -100;
}
/* Now we need to animate it */
@keyframes loader{
50%{
transform: rotate(360deg);
}
}
#page-loader circle{
animation-name: loader;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-timing-function: ease-in-ease-out;
transform-origin: center center;
}
#page-loader circle:nth-child(1){
animation-delay: -.2s;
}
#page-loader circle:nth-child(2){
animation-delay: -.4s;
}
#page-loader circle:nth-child(3){
animation-delay: -.6s;
}
#page-loader circle:nth-child(4){
animation-delay: -.8s;
}