-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
172 lines (171 loc) · 4.1 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
* Functions
*/
/* Animation */
/* animation: [<name> || <duration> || <timing-function> || <delay> || <iteration-count> || <direction> || <fill-mode>] */
/* key Frames */
@-moz-keyframes fadein {
0% {
opacity: 0;
}
50% {
opacity: 0.4;
}
80% {
opacity: 0.7;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes fadein {
0% {
opacity: 0;
}
50% {
opacity: 0.4;
}
80% {
opacity: 0.7;
}
100% {
opacity: 1;
}
}
@-moz-keyframes startrain {
0% {
top: -800px;
}
100% {
top: 0px;
}
}
@-webkit-keyframes startrain {
0% {
top: -800px;
}
100% {
top: 0px;
}
}
@-moz-keyframes keeprain {
0% {
background-position: -212px 100%;
}
100% {
background-position: -212px 0;
}
}
@-webkit-keyframes keeprain {
0% {
background-position: -212px 100%;
}
100% {
background-position: -212px 0;
}
}
/* Style */
body {
background: url(images/field.png) no-repeat center top;
}
.cloud {
opacity: 0;
position: absolute;
}
#clouds {
margin: 0 auto;
position: relative;
width: 230px;
}
#cloud-1 {
-moz-animation: fadein 3s linear 0s 1 normal forwards;
-ms-animation: fadein 3s linear 0s 1 normal forwards;
-o-animation: fadein 3s linear 0s 1 normal forwards;
-webkit-animation: fadein 3s linear 0s 1 normal forwards;
animation: fadein 3s linear 0s 1 normal forwards;
background: url(images/cloud1.png) no-repeat 0 0;
height: 49px;
left: 11px;
top: 40px;
width: 69px;
z-index: 1;
}
#cloud-2 {
-moz-animation: fadein 4.5s linear 0s 1 normal forwards;
-ms-animation: fadein 4.5s linear 0s 1 normal forwards;
-o-animation: fadein 4.5s linear 0s 1 normal forwards;
-webkit-animation: fadein 4.5s linear 0s 1 normal forwards;
animation: fadein 4.5s linear 0s 1 normal forwards;
background: url(images/cloud2.png) no-repeat 0 0;
height: 45px;
left: 126px;
top: 40px;
width: 76px;
z-index: 2;
}
#cloud-3 {
-moz-animation: fadein 3s linear 0s 1 normal forwards;
-ms-animation: fadein 3s linear 0s 1 normal forwards;
-o-animation: fadein 3s linear 0s 1 normal forwards;
-webkit-animation: fadein 3s linear 0s 1 normal forwards;
animation: fadein 3s linear 0s 1 normal forwards;
background: url(images/cloud3.png) no-repeat 0 0;
height: 70px;
left: 107px;
top: 22px;
width: 107px;
z-index: 3;
}
#cloud-4 {
-moz-animation: fadein 6s linear 1s 1 normal forwards;
-ms-animation: fadein 6s linear 1s 1 normal forwards;
-o-animation: fadein 6s linear 1s 1 normal forwards;
-webkit-animation: fadein 6s linear 1s 1 normal forwards;
animation: fadein 6s linear 1s 1 normal forwards;
background: url(images/cloud4.png) no-repeat 0 0;
height: 106px;
left: 64px;
top: 4px;
width: 121px;
z-index: 4;
}
#cloud-5 {
-moz-animation: fadein 8s linear 2s 1 normal forwards;
-ms-animation: fadein 8s linear 2s 1 normal forwards;
-o-animation: fadein 8s linear 2s 1 normal forwards;
-webkit-animation: fadein 8s linear 2s 1 normal forwards;
animation: fadein 8s linear 2s 1 normal forwards;
background: url(images/cloud5.png) no-repeat 0 0;
height: 104px;
opacity: 0;
width: 227px;
z-index: 5;
}
#rain {
-moz-animation: keeprain 1s linear 10.8s infinite normal none;
-ms-animation: keeprain 1s linear 10.8s infinite normal none;
-o-animation: keeprain 1s linear 10.8s infinite normal none;
-webkit-animation: keeprain 1s linear 10.8s infinite normal none;
animation: keeprain 1s linear 10.8s infinite normal none;
background: url(images/rain1.png) no-repeat 0 -800px;
height: 300px;
margin: 0 auto;
overflow: hidden;
position: relative;
top: 67px;
width: 227px;
}
#rain div {
/*-moz-animation: startrain 2s ease-in 0s 1 forwards, keeprain 1s linear 2s infinite;*/
-moz-animation: startrain 1.8s ease-in 9s 1 normal none;
-ms-animation: startrain 1.8s ease-in 9s 1 normal none;
-o-animation: startrain 1.8s ease-in 9s 1 normal none;
-webkit-animation: startrain 1.8s ease-in 9s 1 normal none;
animation: startrain 1.8s ease-in 9s 1 normal none;
background: url(images/rain1.png) repeat-y 0 100%;
height: 800px;
left: 0;
position: absolute;
top: -800px;
width: 100%;
}