-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
68 lines (63 loc) · 1.12 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
body {
display: block;
background: #fafafa;
}
header,footer,.gameOver,.scoreDisplay {
font-family: 'Press Start 2P', cursive;
color: #666666;
}
header,footer {
background-color: #AAAAAA;
color: #ffffff;
position: absolute;
width: 100%;
text-align: center;
}
footer {
bottom: 0;
}
.ring {
width: 30;
height: 30;
}
.dino {
position: absolute;
width: 52px;
height: 60px;
background-image: url(img/sonic-run2.gif);
bottom: 0;
}
.gameOver {
text-align: center;
padding-bottom: 120px;
}
.scoreDisplay {
text-align: right;
margin-right: 100px;
}
.cactus {
position: absolute;
width: 60px;
height: 60px;
bottom: 0;
background-image: url(img/cactus.png);
}
/*animação*/
@keyframes slideright {
from {
background-position: 7000%;
}
to {
background-position: 0;
}
}
.background {
position: absolute;
bottom: 50%;
background-image: url(img/background.png);
background-repeat: repeat-x;
animation: slideright 800s linear;
animation-iteration-count: infinite;
width: 100%;
height: 200px;
}