-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLoader.module.css
More file actions
48 lines (46 loc) · 866 Bytes
/
Copy pathLoader.module.css
File metadata and controls
48 lines (46 loc) · 866 Bytes
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
.loader {
width: 48px;
height: 48px;
border-radius: 50%;
position: absolute;
animation: rotate 1s linear infinite;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
}
.loader::before,
.loader::after {
content: "";
box-sizing: border-box;
position: absolute;
inset: 0px;
border-radius: 50%;
border: 5px solid #fff;
animation: prixClipFix 2s linear infinite;
}
.loader::after {
transform: rotate3d(90, 90, 0, 180deg);
border-color: #ff3d00;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes prixClipFix {
0% {
clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
}
50% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
}
75%,
100% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
}
}