-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
251 lines (236 loc) · 8 KB
/
index.html
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./assets/styles/normalize.css" />
<link rel="stylesheet" href="./assets/styles/index.css" />
<title>Light pollution</title>
</head>
<body>
<!-- Error for smaller screens -->
<div id="screen-error">
<h1>Light pollution</h1>
<p>
This scrollytelling is best experienced with a bigger screen-size.
Please switch to a device with a bigger screen or make your browser
window wider for a better visual experience!
</p>
<a href="https://www.darksky.org/" target="_blank">
<button>Read more</button>
</a>
</div>
<main>
<!-- Section 1 - Introduction / "Make an impact - turn off your lights" -->
<section>
<h1 class="polluted">Light pollution</h1>
<h1 class="dimmed">Make an impact - turn off your lights!</h1>
<p class="polluted">
Light pollution is the excessive or inappropriate use of outdoor
artificial light.
</p>
<p class="polluted direction">Scroll down to learn more</p>
<img
id="arrow_intro"
class="polluted"
src="assets/images/section_1/arrow_intro.svg"
alt="Scroll down"
/>
<!-- Dimmed -->
<p class="dimmed">
“For my part I know nothing with any certainty, but the sight of the
stars makes me dream, in the same simple way as I dream about the
black dots representing towns and villages on a map”
</p>
<p class="dimmed author">- Vincent van Gogh</p>
<a href="https://www.darksky.org/" target="_blank">
<button class="dimmed">Read more</button>
</a>
<span
role="button"
tabindex="0"
aria-pressed="false"
id="reload-button"
>
<img
id="reload_arrow"
class="dimmed"
src="assets/images/section_1/reload_arrow.svg"
alt="Reload page"
/>
<p class="dimmed direction direction-reload">Reload page</p>
</span>
<!-- Northern lights -->
<div id="northern-lights" class="dimmed"></div>
</section>
<!-- Section 2 - Human health -->
<section>
<div class="side side--left">
<img
id="left-side_room"
src="assets/images/section_2/left-side_room.svg"
alt="Left side of bedroom"
/>
<img
id="bed-human"
src="assets/images/section_2/bed-human.svg"
alt="Bed with sleeping human"
/>
</div>
<div class="side side--right">
<img
id="right-side_room"
src="assets/images/section_2/right-side_room.svg"
alt="Right side of bedroom"
/>
</div>
<img
id="light-beam-window"
class="polluted lightbeam"
src="assets/images/section_2/light-beam-window.svg"
alt="Polluted light coming through window"
/>
<img
id="light-beam-doorway"
class="polluted lightbeam"
src="assets/images/section_2/light-beam-doorway.svg"
alt="Doorway light is turned on"
/>
<p class="polluted">
Artificial light can disturb natural body rhythms in both humans and
animals. This can result in sleep deprivation, fatigue, headaches,
stress, anxiety, and other health problems.
</p>
<!-- Dimmed -->
<p class="dimmed">
When we don’t get affected by artificial light, our bodies produce
more of the hormone melatonin that causes us to sleep better and
increases our overall health.
</p>
</section>
<!-- Section 3 - Animal disorientation -->
<section>
<div class="side side--left">
<img
src="assets/images/section_3/left-side_ocean.svg"
alt="Ocean view with distant lighthouse"
class="bg-img"
/>
<img
src="assets/images/section_3/sea-turtle.svg"
alt="Sea turtle swimming in ocean"
id="large-turtle"
class="turtle"
/>
</div>
<div class="side side--right">
<img
src="assets/images/section_3/right-side_ocean.svg"
alt="Ocean and beach with lighthouse"
class="bg-img"
/>
<img
src="assets/images/section_3/sea-turtle.svg"
alt="Sea turtle hatchling"
id="small-turtle"
class="turtle"
/>
<img
src="assets/images/section_3/sea-turtle.svg"
alt="Sea turtle hatchling"
id="medium-turtle"
class="turtle"
/>
</div>
<img
class="polluted lightbeam"
src="assets/images/section_3/lightbeam-far.svg"
alt="Distant lightbeam from lighthouse"
id="lightbeam-far"
/>
<img
class="polluted lightbeam"
src="assets/images/section_3/lightbeam-close.svg"
alt="Lightbeam from lighthouse"
id="lightbeam-close"
/>
<p class="polluted">
Light pollution can disorient animals and cause problems when they try
to navigate in the wild. Many species use the horizon and stars for
orientation.
</p>
<!-- Dimmed -->
<p class="dimmed">
With only the help of natural light, like the moon, turtles and their
hatchlings have a better chance of surviving and finding the way back
to the ocean and their group.
</p>
<div class="moon dimmed"></div>
<div id="flare-moonbeam" class="dimmed"></div>
</section>
<!-- Section 4 - The night sky -->
<section>
<div class="side side--left">
<img
src="assets/images/section_4/city-front.svg"
alt="Big city with buildings"
id="city-front"
/>
</div>
<div class="side side--right">
<img
src="assets/images/section_4/city-landscape.svg"
alt="City in the horizon"
id="city-landscape"
/>
<img
src="assets/images/section_4/city-back.svg"
alt="Distant city"
id="city-back"
/>
</div>
<p class="polluted polluted--fade">
More than 80% of the world and more than 99% of the U.S. and European
populations live under light-polluted skies.
</p>
<button class="polluted" id="lightswitch">Dim the lights</button>
<img
class="polluted lightbeam"
src="assets/images/section_4/light-beam-left.svg"
alt="Polluted lightbeam reflecting from city"
id="light-beam-left"
/>
<img
class="polluted lightbeam"
src="assets/images/section_4/light-beam-right.svg"
alt="Polluted lights from city"
id="light-beam-right"
/>
<!-- Dimmed -->
<p class="dimmed dimmed--fade">
Without light pollution, we get to see more of the incredible night
sky. This will increase our chances of seeing natural phenomenons like
shooting stars, the milky way or the northern lights.
</p>
<img
class="dimmed"
src="assets/images/section_4/shooting-star.svg"
alt="Shooting star"
id="shooting-star"
/>
<p id="direction--scroll-up" class="dimmed dimmed--fade direction">
Scroll back up
</p>
<img
id="arrow-up"
class="dimmed dimmed--fade"
src="assets/images/section_1/arrow_intro.svg"
alt="Scroll up"
/>
</section>
</main>
<!-- Scripts -->
<script src="./script.js"></script>
</body>
</html>