-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
50 lines (47 loc) · 867 Bytes
/
style.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
body {
background-color: #f07260;
font-size: 64px;
}
#main {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.spinner {
position: relative;
}
.spinner:before,
.spinner:after {
content: '';
position: relative;
display: block;
}
.spinner:before {
animation: spinner 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
width: 1em;
height: 1em;
background-color: #fff;
}
.spinner:after {
animation: shadow 2.5s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
bottom: -0.5em;
height: 0.25em;
border-radius: 50%;
background-color: rgba(#000, 0.2);
}
@keyframes spinner {
50% {
border-radius: 50%;
transform: scale(0.5) rotate(360deg);
}
100% {
transform: scale(1) rotate(720deg);
}
}
@keyframes shadow {
50% {
transform: scale(0.5);
background-color: rgba(#000, 0.1);
}
}