-
Notifications
You must be signed in to change notification settings - Fork 0
/
external.css
57 lines (55 loc) · 939 Bytes
/
external.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
*{
padding: 1%;
margin: 0;
overflow-x: hidden;
background-color: black;
color: white;
}
.game{
width: 600px;
height: 400px;
margin: auto;
background-position: fixed;
}
#character{
border-color: cyan;
border-style: dotted;
width: 20px;
height: 60px;
background-color: grey;
position:relative;
top: 150px;
border-radius: 14%;
}
.animate{
animation: jump 0.3s linear;
}
#block{
background-color: white;
width: 20px;
height: 8px;
position: relative;
top: 130px;
left: 500px;
animation: block 1.3s infinite linear;
border-radius: 30%;
}
@keyframes block{
0%{left: 500px}
100%{left: -20px}
}
/*jump animation*/
@keyframes jump{
0%{top: 160px;}
30%{top: 100px;}
70%{top: 100px;}
100%{top: 160px;}
}
p{
text-align: center;
}
.i:hover{
color: yellow;
font-size: 20px;
text-decoration: underline;
}