-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
102 lines (88 loc) · 1.33 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
* {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
button {
background-color: #bababa; /* Green */
border: 1px solid black;
position: absolute;
top: 45%;
left: 45%;
color: black;
padding: 15px 32px;
text-align: center;
font-size: 16px;
cursor: pointer;
}
button:hover {
background-color: #d4d4d4;
}
#results {
position: absolute;
top: 25%;
left: 47.5%;
font-size: 25px;
text-align: center;
}
#game {
position: relative;
background-color: white;
width: 1000px;
height: 400px;
border: 3px solid black;
}
#game img{
position: absolute;
width: 1000px;
height: 400px;
}
#score {
position: absolute;
top: 10px;
left: 10px;
text-align: center;
}
#motivation {
position: absolute;
top: -40px;
left: -150px;
text-align: center;
font-size: 20px;
width: 400px;
}
#character{
width: 80px;
height: 120px;
position: relative;
top: 280px;
left: 200px;
}
#character img {
width:80px;
height:120px;
}
.animate {
animation: jump 600ms;
}
#block {
width: 80px;
height: 80px;
position: relative;
top: 200px;
left: 920px;
animation: block linear 1.5s infinite;
}
#block img {
width: 80px;
height: 80px;
}
@keyframes jump {
0%{top: 280px}
50%{top: 130px}
100%{top: 280px}
}
@keyframes block {
0%{left: 920px;}
100%{left: -80px;}
}