-
Notifications
You must be signed in to change notification settings - Fork 0
/
dino.css
59 lines (58 loc) · 1.11 KB
/
dino.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
html {
cursor: url(image/cursor.cur), auto;
}
body{
font-family: 'Press Start 2P', cursive;
background: #495c6b;
width:100%;
margin: 0;
margin: 0;
}
canvas{
position: relative;
left: 50%;
transform: translateX(-50%);
background: url(image/mapground.png);
animation: animatedBackground 6.5s linear infinite;
margin: 0 auto;
}
h1,h2,h3{
text-align:center;
text-transform:uppercase;
}
#top{
margin: 0;
padding: 8px;
color: #EC7063;
background: #495c6b;
}
#game {
position: relative;
padding: 1em;
background-image: url('image/bg2.png');
background-size:100%;
background-repeat: repeat-y;
background-attachment: fixed;
}
#bottom{
margin: 0;
padding: 8px;
color: #EC7063;
background: #495c6b;
text-align: center;
}
#bottom h3 {
display: inline-block;
padding: 0 1em;
}
#gameTitle {
animation: jump .5s ease-out alternate infinite;
}
@keyframes animatedBackground {
0% { background-position: 0 0; }
100% { background-position: -1200px 0; }
}
@keyframes jump {
0% {transform: translateY(20%)}
100% {transform: translateY(-20%)}
}