1
1
/* Variables */
2
2
/*Applying colors*/
3
+ body {
4
+ background-color : black;
5
+ }
6
+
3
7
.scene1 {
4
8
background : linear-gradient (180deg , rgb (157 , 221 , 247 ) 67% , rgb (83 , 154 , 184 ) 67% );
5
9
}
20
24
background : black;
21
25
}
22
26
27
+ .scene6 {
28
+ background : black;
29
+ }
30
+
31
+ .scene7 {
32
+ background-color : black;
33
+ }
34
+
35
+ .scene8 {
36
+ background-color : black;
37
+ }
38
+
23
39
main div : nth-of-type (n + 3) {
24
40
color : lightgrey;
25
41
}
28
44
margin : 0 ;
29
45
}
30
46
31
- main > div {
47
+ main > div : nth-of-type (-n+5) {
32
48
display : grid;
33
49
grid-template-columns : 1fr 1fr ;
34
50
grid-template-rows : 1fr 1fr ;
@@ -39,20 +55,34 @@ main > div {
39
55
width : 30vw ;
40
56
margin : 0 auto;
41
57
opacity : 0 ;
58
+ position : sticky;
59
+ top : 25px ;
42
60
}
43
61
44
62
/* general layout for side plant images*/
45
63
.background-plants-right {
46
64
width : 9vw ;
47
65
float : right;
66
+ opacity : 0 ;
67
+ }
68
+
69
+ .plantContainer {
70
+ overflow : hidden;
48
71
}
49
72
50
73
.background-plants-left {
51
74
width : 9vw ;
75
+ opacity : 0 ;
52
76
}
53
77
54
- /* SCENE 1 */
55
78
/* Style for scene 1 and the elenent in it */
79
+ .bottle {
80
+ position : absolute;
81
+ width : 5vw ;
82
+ left : 32vw ;
83
+ transform : translateY (4vw );
84
+ }
85
+
56
86
.cloud {
57
87
width : 50% ;
58
88
}
@@ -70,20 +100,140 @@ main > div {
70
100
margin : 0 auto;
71
101
}
72
102
73
- .floatingBottleTrash {
74
- opacity : 20% ;
75
- width : 50vw ;
103
+ .scene6 {
104
+ height : 100vh ;
105
+ }
106
+ .scene6 h3 {
107
+ position : sticky;
108
+ top : 50vh ;
109
+ margin : 7vw 0 ;
110
+ }
111
+
112
+ .scene7 {
113
+ height : 100vh ;
114
+ background-image : url ("../images/healthy-earth.png" );
115
+ background-repeat : no-repeat;
116
+ background-position : center;
117
+ background-attachment : fixed;
118
+ }
119
+ .scene7 div {
120
+ height : 100vh ;
121
+ }
122
+
123
+ .scene8 {
124
+ height : 100vh ;
125
+ background-image : url ("../images/dead-earth.png" );
126
+ background-repeat : no-repeat;
127
+ background-position : center;
128
+ background-attachment : fixed;
76
129
}
77
130
78
131
body {
79
132
font-family : sans-serif;
80
133
}
81
134
82
- .scene-text-conteiner {
135
+ .scene-text-conteiner , p {
83
136
font-size : 1.5rem ;
84
137
}
85
138
86
- .show {
87
- transform : translateY (-20px );
88
- opacity : 1 ;
89
- }/*# sourceMappingURL=index.css.map */
139
+ h3 {
140
+ font-size : 5rem ;
141
+ text-align : center;
142
+ }
143
+
144
+ @keyframes textboxInn {
145
+ 0% {
146
+ transform : translateY (0 );
147
+ opacity : 0 ;
148
+ }
149
+ 100% {
150
+ transform : translateY (-40px );
151
+ opacity : 1 ;
152
+ }
153
+ }
154
+ @keyframes plantLeftInn {
155
+ 0% {
156
+ opacity : 1 ;
157
+ transform : rotate (13deg ) translateX (-90px );
158
+ }
159
+ 40% {
160
+ opacity : 1 ;
161
+ transform : rotate (38deg ) translateX (0px );
162
+ }
163
+ 60% {
164
+ opacity : 1 ;
165
+ transform : rotate (38deg ) translateX (0px );
166
+ }
167
+ 80% {
168
+ opacity : 1 ;
169
+ transform : rotate (38deg ) translateX (0px );
170
+ }
171
+ 100% {
172
+ opacity : 1 ;
173
+ transform : rotate (38deg ) translateX (0px );
174
+ }
175
+ }
176
+ @keyframes plantRightInn {
177
+ 0% {
178
+ opacity : 1 ;
179
+ transform : rotate (-13deg ) translateX (90px );
180
+ }
181
+ 40% {
182
+ opacity : 1 ;
183
+ transform : rotate (-30deg ) translateX (0px );
184
+ }
185
+ 60% {
186
+ opacity : 1 ;
187
+ transform : rotate (-30deg ) translateX (0px );
188
+ }
189
+ 80% {
190
+ opacity : 1 ;
191
+ transform : rotate (-30deg ) translateX (0px );
192
+ }
193
+ 100% {
194
+ opacity : 1 ;
195
+ transform : rotate (-30deg ) translateX (0px );
196
+ }
197
+ }
198
+ @keyframes bottleThrow {
199
+ 0% {
200
+ transform : translateY (4vw );
201
+ }
202
+ 60% {
203
+ transform : translateX (20vw ) translateY (-20vw ) rotate (-200deg );
204
+ }
205
+ 100% {
206
+ transform : translateX (20vw ) translateY (10vw ) rotate (-400deg );
207
+ position : fixed;
208
+ }
209
+ }
210
+ .showTextAnimation {
211
+ animation-name : textboxInn;
212
+ transition : 0.8s ;
213
+ animation-duration : 1s ;
214
+ animation-delay : 0.7s ;
215
+ animation-fill-mode : forwards;
216
+ }
217
+
218
+ .showPlantLeftAnimation {
219
+ animation-name : plantLeftInn;
220
+ transition : 0.8s ;
221
+ animation-duration : 3s ;
222
+ animation-delay : 0.9s ;
223
+ animation-fill-mode : forwards;
224
+ }
225
+
226
+ .showPlantRightAnimation {
227
+ animation-name : plantRightInn;
228
+ animation-duration : 1s ;
229
+ animation-delay : 0.9s ;
230
+ animation-fill-mode : forwards;
231
+ }
232
+
233
+ .throwBottleAnimation {
234
+ animation-name : bottleThrow;
235
+ transition : 2s ;
236
+ animation-duration : 3s ;
237
+ animation-delay : 2s ;
238
+ animation-fill-mode : forwards;
239
+ }/*# sourceMappingURL=index.css.map */
0 commit comments