-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday-3.css
More file actions
40 lines (35 loc) · 919 Bytes
/
day-3.css
File metadata and controls
40 lines (35 loc) · 919 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
.loader { height: 100vh; overflow: hidden; position: absolute; width: 100vw; z-index: 1; }
.pacman {
display: block;
height: 5em;
left: 50%;
margin: -2.5em;
position: absolute;
top: 50%;
width: 5em;
z-index: 3;
}
.pacman:before,
.pacman:after {
content: "";
background-color: #c5ab03;
border-radius: 5em 0 0 5em;
display: block;
height: 5em;
position: absolute;
transform-origin: 100% 50%;
width: 2.5em;
will-change: transform;
}
.pacman:before { animation: _pacmanTop 0.5s ease infinite; transform: rotate(45deg); }
.pacman:after { animation: _pacmanBottom 0.5s ease infinite; transform: rotate(-45deg); }
@keyframes _pacmanTop {
0% { transform: rotate(45deg); }
50% { transform: rotate(90deg); }
100% { transform: rotate(45deg); }
}
@keyframes _pacmanBottom {
0% { transform: rotate(-45deg); }
50% { transform: rotate(-90deg); }
100% { transform: rotate(-45deg);}
}