-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
style.css
114 lines (100 loc) · 1.9 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
103
104
105
106
107
108
109
110
111
112
113
body {
display: flex;
}
.game-container {
width: 500px;
height: 730px;
position: absolute;
left: 80px;
}
.border-left {
width: 80px;
height: 790px;
position: absolute;
background-color: white;
z-index: +2;
}
.border-right {
width: 80px;
height: 790px;
position: absolute;
background-color: white;
z-index: +2;
left: 580px;
}
.border-top {
width: 660px;
height: 50px;
position: absolute;
background-color: white;
z-index: +2;
top: -50px;
}
.sky {
background-image: url('fb-game-background.png');
width: 500px;
height: 580px;
position: absolute;
}
.ground {
background-image: url('bottom-background.png');
width: 500px;
height: 150px;
position: absolute;
top: 580px;
z-index: +1;
}
.bird {
background-image: url('flappy-bird.png');
position: absolute;
width: 60px;
height: 45px;
left: 220px;
bottom: 100px;
}
.obstacle {
background-image: url('flappybird-pipe.png');
width: 60px;
height: 300px;
position: absolute;
}
.topObstacle {
background-image: url('flappybird-pipe.png');
transform: rotate(180deg);
width: 60px;
height: 300px;
position: absolute;
}
@keyframes slideright {
from {
background-position: 10000%;
}
to {
background-position: 0%;
}
}
@-webkit-keyframes slideright {
from {
background-position: 10000%;
}
to {
background-position: 0%;
}
}
.ground-container {
height: 150px;
width: 580px;
left: 80px;
position: absolute;
}
.ground-moving {
position: absolute;
top: 580px;
height: 150px;
background-image: url('bottom-background.png');
background-repeat: repeat-x;
animation: slideright 100s infinite linear;
-webkit-animation: slideright 100s infinite linear;
width: 100%;
z-index: +1;
}