-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
64 lines (57 loc) · 932 Bytes
/
Copy pathstyle.css
File metadata and controls
64 lines (57 loc) · 932 Bytes
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
* {
margin: 0;
padding: 0;
}
.game {
width: 600px;
height: 200px;
border: 1px solid #000000;
margin: 200px auto;
}
#dino {
height: 70px;
background-image: url(./images/DinoRefresh.webp);
background-size: auto 100%;
position: relative;
top: 132px;
background-repeat: no-repeat;
left: 40px;
}
#cactus {
height: 70px;
background-image: url(./images/4-green.png);
background-size: auto 80%;
position: relative;
background-repeat: no-repeat;
top: 75px;
left: 560px;
animation: cactus 1.2s infinite linear;
}
.jump {
animation: jump 0.3s linear;
}
@keyframes jump {
0% {
top: 132px;
}
30% {
top: 108px;
}
50% {
top: 65px;
}
80% {
top: 108px;
}
100% {
top: 132px;
}
}
@keyframes cactus {
0% {
left: 560px;
}
100% {
left: -20px;
}
}