-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
58 lines (44 loc) · 996 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
56
57
58
.dino {
background-image: url(dino.png);
position: absolute;
bottom: 0;
width: 60px;
height: 60px;
/* background-color: green; */
}
.cactus {
position: absolute;
width: 60px;
height: 60px;
bottom: 0;
/* background-color: red; */
background-image: url(cactus.png);
}
body {
background: #fafafa;
}
.game-over {
text-align: center;
color: #666;
margin: 50px 0;
font-family: arial;
}
.background {
position: absolute;
bottom: 0px;
background-image: url('background.png');
background-repeat: repeat-x;
animation: slideright 600s infinite linear; /* repete infinito */
-webkit-animation: slideRight 600s infinite linear;
width: 100%;
height: 200px;
}
/* ------- animation using css - with keyframes ----- */
@keyframes slideRight { /* nome da animação sliderright */
from {
background-position: 70000%;
}
to {
background-position: 0%;
}
}