-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.css
56 lines (49 loc) · 1.05 KB
/
loading.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
51
52
53
54
55
56
body{
background-color: black;
}
.loading-screen{
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100vh;
justify-content: center;
}
.pacman-upper-mouth{
background-color: yellow;
height: 150px;
width: 300px;
border-top-right-radius: 150px;
border-top-left-radius: 150px;
transform-origin: bottom center;
animation: mouth-top-animation 1.5s linear infinite;
}
.pacman-lower-mouth{
background-color: yellow;
height: 150px;
width: 300px;
border-bottom-right-radius: 150px;
border-bottom-left-radius: 150px;
transform-origin: top center;
animation: mouth-bottom-animation 1.5s linear infinite;
}
@keyframes mouth-top-animation {
50%{
transform: rotate(-35deg);
}
}
@keyframes mouth-bottom-animation {
50%{
transform: rotate(35deg);
}
}
@-webkit-keyframes mouth-top-animation {
50%{
transform: rotate(-35deg);
}
}
@-webkit-keyframes mouth-bottom-animation {
50%{
transform: rotate(35deg);
}
}