-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrect46.module.css
More file actions
71 lines (60 loc) · 1.04 KB
/
Copy pathrect46.module.css
File metadata and controls
71 lines (60 loc) · 1.04 KB
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
.loader {
position: relative;
width: 48px;
height: 48px;
}
.loader:before,
.loader:after {
content: "";
border-left: 24px solid #fff;
border-right: 24px solid #FF3D00;
position: absolute;
height: 24px;
width: 0;
left: 50%;
transform: translateX(-50%);
top: 0px;
animation: splitX 1s linear infinite alternate;
}
.loader:after {
border-left: 24px solid #FF3D00;
border-right: 24px solid #FFF;
top: 24px;
animation: splitAltX 1s linear infinite alternate;
}
@keyframes splitAltX {
0% {
width: 48px;
transform: translate(-50%, 0)
}
33% {
width: 0px;
transform: translate(-50%, 0)
}
66% {
width: 96px;
transform: translate(-50%, -24px)
}
100% {
width: 48px;
transform: translate(-50%, -24px)
}
}
@keyframes splitX {
0% {
width: 0px;
transform: translate(-50%, 0)
}
33% {
width: 96px;
transform: translate(-50%, 0)
}
66% {
width: 96px;
transform: translate(-50%, 24px)
}
100% {
width: 48px;
transform: translate(-50%, 24px)
}
}