-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculadora.css
113 lines (110 loc) · 2.13 KB
/
calculadora.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
input[type="button"]
{
background-color: white;
border: none;
color: black;
font-weight: bold;
padding: 6px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 4px 4px;
cursor: pointer;
box-shadow: 3px 3px 3px black;
}
input[type="text"]{
border: solid;
color: black;
padding: 15px 32;
text-align: right;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
width: 95%;
box-shadow: 3px 3px 3px black;
}
body{
background-color: black;
}
table{
display: block;
margin: 0 auto;
padding: 20px;
background-color: blueviolet;
width: 350px;
height: 300px;
border-radius: 25px;
}
.container{
display: flex;
align-items: center;
overflow: hidden;
height: 50vh;
width: 50%;
}
.path{
display: flex;
justify-content: space-around;
width: 100%;
animation: eating-path 0.5s linear infinite;
}
.path::before{
content: "";
background-color: #fff;
height: 1rem;
width: 1rem;
border-radius: 50%;
}
@keyframes eating-path{
0%{
transform: translateX(50%);
}
100%{
transform: translate(-50%);
}
}
.pacman{
position: relative;
background: transparent;
z-index: 1;
}
.pacman::before, .pacman::after{
content: "";
position: absolute;
top: -35px;
display: block;
border-radius: 50%;
height: 0px;
width: 0px;
}
.pacman::before{
animation: chunk-top 0.5s ease infinite;
border: 35px solid #ffcc00;
border-left-color: transparent;
border-bottom-color: transparent;
}
@keyframes chunk-top{
0%,100%{
transform: rotate(-45deg);
}
50%{
transform: rotate(-80deg);
}
}
.pacman::after{
animation: chunk-bottom 0.5s ease infinite;
border: 35px solid #ffcc00;
border-right-color: transparent;
border-top-color: transparent;
}
@keyframes chunk-bottom{
0%,100%{
transform: rotate(-40deg);
}
50%{
transform: rotate(0deg);
}
}