-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
39 lines (36 loc) · 1008 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
.pixel-spinner,
.pixel-spinner * {
box-sizing: border-box;
}
.pixel-spinner {
height: 95vh;
width: 98vw;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.pixel-spinner .pixel-spinner-inner {
width: calc(70px / 7);
height: calc(70px / 7);
background-color: #ff1d5e;
color: #ff1d5e;
box-shadow: 15px 15px 0 0, -15px -15px 0 0, 15px -15px 0 0, -15px 15px 0 0,
0 15px 0 0, 15px 0 0 0, -15px 0 0 0, 0 -15px 0 0;
animation: pixel-spinner-animation 2000ms linear infinite;
}
@keyframes pixel-spinner-animation {
50% {
box-shadow: 20px 20px 0px 0px, -20px -20px 0px 0px, 20px -20px 0px 0px,
-20px 20px 0px 0px, 0px 10px 0px 0px, 10px 0px 0px 0px, -10px 0px 0px 0px,
0px -10px 0px 0px;
}
75% {
box-shadow: 20px 20px 0px 0px, -20px -20px 0px 0px, 20px -20px 0px 0px,
-20px 20px 0px 0px, 0px 10px 0px 0px, 10px 0px 0px 0px, -10px 0px 0px 0px,
0px -10px 0px 0px;
}
100% {
transform: rotate(360deg);
}
}