-
Notifications
You must be signed in to change notification settings - Fork 0
/
Style.css
85 lines (77 loc) · 1.38 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
img{
width: 100%;
height: 100%;
}
#Score{
position: absolute;
font-size: 5vw;
left: 50%;
top: 15%;
transform: translate(-50%, -50%);
}
#HighScore{
position: absolute;
font-size: 1vw;
left: 50%;
top: 22%;
transform: translate(-50%, -50%);
}
#Game{
position: absolute;
width: 75%;
height: 75%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-width: 3px;
border-style: solid;
border-color: black;
}
#Grass{
position: absolute;
width: 75%;
height: 10%;
top: 93%;
left: 50%;
border-width: 3px;
border-style: solid;
border-color: black;
transform: translate(-50%, -50%);
background-color: rgb(0, 255, 21);
}
#Player{
position: absolute;
width: 3vw;
height: 3vw;
top: 100%;
left: 5%;
transform: translate(0, -100%);
}
#Obstacle{
position: absolute;
width: 2.5vw;
height: 7.5vw;
left: 100%;
top: 100%;
transform: translate(0, -100%);
animation: ObstacleMoveAnim 1.35s infinite linear;
}
.Jump{
animation: JumpAnim 1000ms;
}
@keyframes JumpAnim{
from{
top: 100%;
} 50% {
top: 65%;
} to {
top: 100%;
}
}
@keyframes ObstacleMoveAnim{
from{
left: 100%;
} to {
left: 0%;
}
}