-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (61 loc) · 1.14 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background: url(./img/Background.png);
background-repeat: no-repeat;
background-size: cover;
}
#board{
background: url(./img/Background.png);
background-size: 800px 350px;
background-repeat: no-repeat;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 800px;
height: 400px;
border: 2px solid black;
}
#score,h1, #Highscore{
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
margin: 20px 0;
}
#character{
/* background: url(./img/clipart2159548.png); */
/* background-color: #888; */
position: relative;
top: 200px;
height: 100px;
width: 50px;
left: 50px;
}
.animate{
animation: jump 500ms;
}
#block{
width: 20px;
height: 20px;
position: relative;
top: 150px;
left: 650px;
}
.animateblock{
animation: block 1s infinite linear ;
}
@keyframes block{
0%{left:600px;}
100%{left:-5px;}
}
@keyframes jump{
0%{top: 200px;}
30%{top: 150px;}
70%{top: 150px;}
100%{top: 200px;}
}