-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
81 lines (66 loc) · 1.05 KB
/
style.css
File metadata and controls
81 lines (66 loc) · 1.05 KB
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
body {
padding: 0px;
margin:0px;
background-color: black;
}
.game{
width: 70%;
height: 40em;
background-color:#00001a;
position: relative;
top: 50px;
left: 15%;
}
a{
text-decoration: none;
}
.hidden{
opacity: 0;
}
.click{
color: red;
position: relative;
top: 50%;
left: 27%;
font-size: 2em ;
width: fit-content;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
animation: start 1s infinite;
}
@keyframes start{
0%{opacity: 100%;}
50%{opacity: 0%;}
100%{opacity: 100%;}
}
.player{
width: 100px;
height: 100px;
background-color: aqua;
position: relative;
top: 20em ;
left: 45%;
}
.playeranim{
animation: Jump 1s ;
}
@keyframes Jump{
0%{top: 20em;}
50%{top: 8em;}
100%{top: 20em;}
}
.obstacle{
width: 100px;
height: 50px;
background-color: lightgreen;
position: relative;
top: 17em;
left: 90%;
}
.obsanim{
animation: move 4s infinite;
}
@keyframes move{
0%{left: 90%;}
50%{left: 0%;}
1000%{left: 90%;}
}