-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
44 lines (32 loc) · 1.48 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
body { overflow: hidden; }
#game { width: 100%; height: 100%; min-height: 530px; }
#background { width: 100%; height: 100%; min-height: 530px; background: url("images/background.png") repeat-x; background-position: 0 0; background-size: auto 100%; position: absolute; z-index: -1; }
#littleBastard { width: 30px; height: 52px; background: url("images/character.png") no-repeat; position: relative; left: 25%; transition: top .2s ease-out; -webkit-transition: top .2s ease-out; }
#littleBastard.upAnimation { background-position: -214px -45px; }
#littleBastard.downAnimation { background-position: -214px -98px; transition: top .8s ease-in; -webkit-transition: top .8s ease-in; }
#foreground .pipe { position: absolute; height: 100%; animation: pipeSlide 5s 1 linear; -webkit-animation: pipeSlide 5s 1 linear; left: 100%; }
#foreground div { width: 89px; }
#foreground .pipeHead { background: url("images/pipeHead.png") no-repeat 0 0; height: 34px; }
#foreground .pipeBody { background: url("images/pipeBody.png") repeat-y 0 0; height: 100%; }
#foreground .down { transform:rotate(180deg); -ms-transform:rotate(180deg); -webkit-transform:rotate(180deg); -moz-transform:rotate(180deg); margin-bottom: 140px; }
@keyframes pipeSlide {
from {
left: 100%;
}
to {
left: -50%;
}
}
@-webkit-keyframes pipeSlide {
from {
left: 100%;
}
to {
left: -50%;
}
}
#message { display: none; }
@media only screen and (max-height: 530px) {
#message { display: block; }
#game { display: none; }
}