File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ background-color : rgb (27 , 75 , 133 );
5+ }
6+
7+ .game-heading {
8+ text-align : center;
9+ font-family : Arial, Helvetica, sans-serif;
10+ color : rgb (0 , 247 , 255 );
11+ text-shadow : 3px 2px rgb (128 , 0 , 0 );
12+ font-size : 5em ;
13+ margin : 40px 0 ;
14+ }
15+
16+ .game {
17+ width : 800px ;
18+ height : 300px ;
19+ margin : 60px auto;
20+ display : flex;
21+ border : 3px solid rgb (0 , 247 , 255 );
22+ }
23+
24+ .cactus {
25+ height : 40px ;
26+ object-fit : contain;
27+ position : relative;
28+ top : 261px ;
29+ left : 670px ;
30+ animation : block 3s infinite linear;
31+ }
32+
33+ .block {
34+ height : 40px ;
35+ }
36+
37+ .character {
38+ height : 100px ;
39+ }
40+
41+ .dino {
42+ height : 100px ;
43+ object-fit : contain;
44+ position : relative;
45+ top : 200px ;
46+ }
47+
48+ .animate {
49+ animation : character 500ms ;
50+ }
51+
52+ @keyframes block {
53+ 0% {
54+ left : 670px ;
55+ }
56+ 100% {
57+ left : -60px ;
58+ }
59+ }
60+
61+ @keyframes character {
62+ 0% {
63+ top : 203px ;
64+ }
65+ 30% {
66+ top : 140px ;
67+ }
68+ 70% {
69+ top : 140px ;
70+ }
71+ 100% {
72+ top : 203px ;
73+ }
74+ }
You can’t perform that action at this time.
0 commit comments