-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (47 loc) · 824 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
body{
background: #fafafa;
}
.dino{
width: 60px;
height: 60px;
background-image: url(img/dino.png);
position: absolute;
bottom: 0;
}
.cactus{
position: absolute;
width: 60px;
height: 60px;
bottom: 0;
background-image: url(img/cactus.png);
}
.game-over{
text-align: center;
color: #666666;
margin-top: 50vh;
font-family: arial;
}
.restart{
text-align: center;
}
.restart img{
width: 50px;
height: 50px;
}
@keyframes slideright{
from{
background-position: 70000%;
}
to{
background-position: 0;
}
}
.background {
position: absolute;
bottom: 0;
background-image: url(img/background.png);
background-repeat: repeat-x;
animation: slideright 600s infinite linear;
width: 100%;
height: 200px;
}