-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (99 loc) · 1.47 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
*{
padding:0;
margin:0;
}
.game{
height: 300px;
width:600px;
border:1px solid blue;
overflow: hidden;
}
#character{
background-image: url("files/run.gif");
background-size: cover;
height: 80px;
width:80px;
position:relative;
top:220px;
left:30px;
}
.animate{
animation :jump 1s 1;
}
@keyframes jump{
0%{
top:220px;
}
30%{
top:180px;
}
70%{
top:180px;
}
100%{
top:220px;
}
}
#block{
background-image: url("files/rocks.png");
background-size: cover;
height:30px;
width:28px;
position:relative;
left:570px;
top:173px;
display:none;
}
.slide{
animation:slide 3s infinite;
}
@keyframes slide{
to{
left:-60px;
}
from{
left: 600px;
}
}
#button-pannel{
height: 300px;
width:600px;
background: black;
opacity:0.5;
z-index: 100;
position:absolute;
padding-top:10%;
display:block;
}
.text{
color:chartreuse;
cursor: pointer;
}
#cloud{
position:absolute;
background-image:url("files/cloud.jpg");
background-size: cover;
width:90px;
height:50px;
top:10px;
animation: cloud 25s infinite;
overflow: hidden;
}
@keyframes cloud{
to{
left:-80px;
}
from{
left:800px;
}
}
#road{
position:absolute;
height: 15px;
width: 600px;
background-color: green;
bottom: 0px;
}
.hide{
opacity: 0;
}