-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
72 lines (60 loc) · 1.09 KB
/
styles.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
body {
background-color: #f5f5f5;
}
#game-container {
position: relative;
width: 500px;
height: 500px;
border: 2px solid #333;
margin: auto;
padding: 20px;
border-radius: 10px;
}
#kitty {
position: absolute;
width: 50px;
height: 50px;
background-image: url('gatitov2.png');
background-size: cover;
background-repeat: no-repeat;
}
#mouse {
position: absolute;
width: 30px;
height: 30px;
background-image: url('raton.svg');
background-size: cover;
background-repeat: no-repeat;
}
#score {
position: absolute;
bottom: 10px;
left: 10px;
}
#progress-bar {
position: absolute;
bottom: 40px;
left: 10px;
width: calc(100% - 20px);
}
#restart-btn {
position: absolute;
bottom: 10px;
right: 10px;
}
#imagen-1,
#imagen-2 {
animation: giroHorizontal 5s infinite linear;
transform-origin: center center;
}
#imagen-2 {
animation-direction: reverse;
}
@keyframes giroHorizontal {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(360deg);
}
}