-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
55 lines (49 loc) · 988 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
body {
background: #fafafa;
}
.dino {
position: absolute; /* é o que coloca ele na posição final */
bottom: 0; /* é o que posiciona ele, não é botão */
margin-left: 60px;
background-image: url('./img/dino.png');
width: 60px;
height: 60px;
transition: .0.5s ease all
}
.cactus {
position: absolute;
width: 60px;
height: 60px;
bottom: 0;
background-image: url('./img/cactus.png');
}
.game-over {
text-align: center;
color: #666;
margin: 80px 0;
font-family: helvetica;
}
.score {
text-align: center;
color: #666;
margin: 50px 0;
font-family: helvetica;
}
@keyframes slideright {
from {
background-position: 70000%;
}
to {
background-position: 0%;
}
}
.background {
position: absolute;
bottom: 0px;
background-image: url('img/background.png');
background-repeat: repeat-x;
animation: slideright 1000s infinite linear;
-webkit-animation: slideright 1000s infinite linear;
width: 100%;
height: 200px;
}