-
Notifications
You must be signed in to change notification settings - Fork 1
/
circular-loader.css
125 lines (120 loc) · 3.02 KB
/
circular-loader.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@keyframes L_circle_rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes L_stroke_rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(1080deg);
}
}
@keyframes L_stroke_fix {
0% {
transform: rotate(0deg);
}
50% {
transform: rotate(135deg);
}
100% {
transform: rotate(270deg);
}
}
@keyframes L_stroke_left_grow {
0% {
transform: rotate(-5deg);
}
50% {
transform: rotate(-140deg);
}
100% {
transform: rotate(-5deg);
}
}
@keyframes L_stroke_right_grow {
0% {
transform: rotate(5deg);
}
50% {
transform: rotate(140deg);
}
100% {
transform: rotate(5deg);
}
}
.circular-loader .stroke::before, .circular-loader .stroke-right::before, .circular-loader .stroke-left::before {
content: "";
display: block;
}
.circular-loader, .circular-loader .stroke, .circular-loader .stroke::before, .circular-loader .stroke-right, .circular-loader .stroke-right::before, .circular-loader .stroke-left, .circular-loader .stroke-left::before {
width: 2em;
height: 2em;
box-sizing: border-box;
border-radius: 50%;
}
.circular-loader .stroke::before, .circular-loader .stroke-right::before, .circular-loader .stroke-left::before {
border-style: solid;
border-width: 0.21429em;
border-color: currentColor;
}
.circular-loader .stroke-right, .circular-loader .stroke-left::before {
position: absolute;
clip: rect(0 2em 2em 1em);
}
.circular-loader .stroke-right::before, .circular-loader .stroke-left {
position: absolute;
clip: rect(0 1em 2em 0);
}
.circular-loader .stroke::before {
position: absolute;
clip: rect(0 1.05em 1em 0.95em);
}
/**/
.circular-loader {
animation: L_circle_rotate 1568.23529ms linear infinite both;
}
.circular-loader .stroke::before,
.circular-loader .stroke-right, .circular-loader .stroke-left {
animation: L_stroke_fix 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
.circular-loader .stroke {
animation: L_stroke_rotate 5332ms steps(4) infinite both;
}
.circular-loader .stroke-right::before {
animation: L_stroke_right_grow 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
.circular-loader .stroke-left::before {
animation: L_stroke_left_grow 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}
@keyframes google-color_K {
0%, 15% {
border-color: #4285f4;
}
25%, 40% {
border-color: #ea4335;
}
50%, 65% {
border-color: #fbbc05;
}
75%, 90% {
border-color: #34a853;
}
100% {
border-color: #4285f4;
}
}
.circular-loader.google-color .stroke::before {
animation: L_stroke_fix 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, google-color_K 5332ms linear infinite both;
}
.circular-loader.google-color .stroke-right::before {
animation: L_stroke_right_grow 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, google-color_K 5332ms linear infinite both;
}
.circular-loader.google-color .stroke-left::before {
animation: L_stroke_left_grow 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both, google-color_K 5332ms linear infinite both;
}
/**/