forked from HENRYMARTIN5/Clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloaders.css
217 lines (199 loc) · 3.7 KB
/
loaders.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
.loading {
display: flex;
justify-content: center;
}
.loading div {
width: 1rem;
height: 1rem;
margin: 2rem 0.3rem;
background: #979fd0;
border-radius: 50%;
-webkit-animation: 0.9s bounce infinite alternate;
animation: 0.9s bounce infinite alternate;
}
.loading div:nth-child(2) {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.loading div:nth-child(3) {
-webkit-animation-delay: 0.6s;
animation-delay: 0.6s;
}
@-webkit-keyframes bounce {
to {
opacity: 0.3;
transform: translate3d(0, -1rem, 0);
}
}
@keyframes bounce {
to {
opacity: 0.3;
transform: translate3d(0, -1rem, 0);
}
}
.donut {
width: 2rem;
height: 2rem;
margin: 2rem;
border-radius: 50%;
border: 0.3rem solid rgba(151, 159, 208, 0.3);
border-top-color: #979fd0;
-webkit-animation: 1.5s spin infinite linear;
animation: 1.5s spin infinite linear;
}
.donut.multi {
border-bottom-color: #979fd0;
}
@-webkit-keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.ripple {
width: 2rem;
height: 2rem;
margin: 2rem;
border-radius: 50%;
border: 0.3rem solid #979fd0;
transform: translate(50%);
-webkit-animation: 1s ripple ease-out infinite;
animation: 1s ripple ease-out infinite;
}
@-webkit-keyframes ripple {
from {
transform: scale(0);
opacity: 1;
}
to {
transform: scale(1);
opacity: 0;
}
}
@keyframes ripple {
from {
transform: scale(0);
opacity: 1;
}
to {
transform: scale(1);
opacity: 0;
}
}
.multi-ripple {
width: 2.6rem;
height: 2.6rem;
margin: 2rem;
}
.multi-ripple div {
position: absolute;
width: 2rem;
height: 2rem;
border-radius: 50%;
border: 0.3rem solid #979fd0;
-webkit-animation: 1.5s ripple infinite;
animation: 1.5s ripple infinite;
}
.multi-ripple div:nth-child(2) {
-webkit-animation-delay: 0.5s;
animation-delay: 0.5s;
}
.fancy-spinner {
display: flex;
justify-content: center;
align-items: center;
width: 5rem;
height: 5rem;
}
.fancy-spinner div {
position: absolute;
width: 4rem;
height: 4rem;
border-radius: 50%;
}
.fancy-spinner div.ring {
border-width: 0.5rem;
border-style: solid;
border-color: transparent;
-webkit-animation: 2s fancy infinite alternate;
animation: 2s fancy infinite alternate;
}
.fancy-spinner div.ring:nth-child(1) {
border-left-color: #979fd0;
border-right-color: #979fd0;
}
.fancy-spinner div.ring:nth-child(2) {
border-top-color: #979fd0;
border-bottom-color: #979fd0;
-webkit-animation-delay: 1s;
animation-delay: 1s;
}
.fancy-spinner div.dot {
width: 1rem;
height: 1rem;
background: #979fd0;
}
@-webkit-keyframes fancy {
to {
transform: rotate(360deg) scale(0.5);
}
}
@keyframes fancy {
to {
transform: rotate(360deg) scale(0.5);
}
}
:root {
--hue: 223;
--bg: hsl(var(--hue),10%,90%);
--fg: hsl(var(--hue),10%,10%);
}
.pl {
display: block;
width: 6.25em;
height: 6.25em;
}
.pl__ring, .pl__ball {
animation: ring 2s ease-out infinite;
}
.pl__ball {
animation-name: ball;
}
/* Animation */
@keyframes ring {
from {
stroke-dasharray: 0 257 0 0 1 0 0 258;
}
25% {
stroke-dasharray: 0 0 0 0 257 0 258 0;
}
50%, to {
stroke-dasharray: 0 0 0 0 0 515 0 0;
}
}
@keyframes ball {
from, 50% {
animation-timing-function: ease-in;
stroke-dashoffset: 1;
}
64% {
animation-timing-function: ease-in;
stroke-dashoffset: -109;
}
78% {
animation-timing-function: ease-in;
stroke-dashoffset: -145;
}
92% {
animation-timing-function: ease-in;
stroke-dashoffset: -157;
}
57%, 71%, 85%, 99%, to {
animation-timing-function: ease-out;
stroke-dashoffset: -163;
}
}