-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
652 lines (601 loc) · 23.7 KB
/
about.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ABOUT</title>
<link rel="icon" type="image/x-icon" href="Assets/Icons/⏩.ico" />
<link rel="stylesheet" type="text/css" href="about.css" />
</head>
<body>
<!-------------------------- NAVBAR ---------------------------------------------------------------------->
<div id="navbar">
<a href="index.html" onclick="paginauno()" id="titolo">⏩PLANT FORWARD</a>
<a href="index.html" onclick="paginadue()" class="bottoncini" id="intro"
>INTRO</a
>
<a href="experience.html" class="bottoncini" id="archive">ARCHIVE</a>
<a href="about.html" class="bottoncini" id="about">ABOUT</a>
</div>
<!-------------------------- ABOUT ---------------------------------------------------------------------->
<div style="left: 5vw; top: 2vw; right: 3vw; position: absolute">
<div class="long-title">
Plant Forward is s digital archive developed from a data-driven
exploration of reforestation, related phenomena, and their
representation on Google Images.
</div>
<div class="paragraph">
The research presented here is a part of a broader report about the
depiction and the perception of the reforestation (you can find it
<a
style="text-decoration: none; color: #00c844"
href="https://drive.google.com/file/d/11P-Z1yU2YQEHLJUK4av8nbnQIf6g6FG9/view?usp=share_link"
>here</a
>) and the question presented here is: "How are the terms associated
with reforestation represented on Google Images?" and analyses the
search results on Google Images from a dataset of 40 terms belonging to
the broad concept of reforestation.
<br />
The analysis focuses on the representation of reforestation and its
growth process. It highlights an underrepresentation of the stages
in-between initial planting to a fully grown forest, along with a minor
human presence in them, which causes a loss of temporal cognition.<br />
The project aims to encourage people to think about how the
reforestation process is a long and gradual process that needs care and
human intervention at every stage.
</div>
</div>
<!-------------------------- DATA ---------------------------------------------------------------------->
<div class="paragraph2">
First we created a list of 40 terms related to reforestation: this
involved collecting words and synonyms from research articles on the
topic.
</div>
<div style="top: 45vw; left: 0.6vw; position: absolute" id="sticky-data">
<div class="data-p" id="stop">
DATA
<hr class="line" id="sticky-line" />
<div
style="
display: block;
margin-top: -2.44vw;
width: 97vw;
margin-left: -2.6vw;
"
>
<div class="sxtr"></div>
<div class="dxtr"></div>
</div>
</div>
</div>
<!-------------------------- STEP 1 ---------------------------------------------------------------------->
<div
style="
font-family: whyte;
font-size: 2vw;
font-weight: lighter;
line-height: 1.7vw;
color: #00c844;
margin-left: 20vw;
margin-top: 60vw;
"
>
STEP 1:
</div>
<div>
<iframe
src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSYov7LOLOcUc93MVZIsTFd6qC6sq-f8eS4qNa6Qns008ScQ5PMVPjTSrakiFGC66pzK4rgvYUtbuKb/pubhtml?gid=490940628&single=true&widget=true&headers=false"
class="tabella"
>
</iframe>
</div>
<!-------------------------- STEP 2 ---------------------------------------------------------------------->
<div
style="
font-family: whyte;
font-size: 2vw;
font-weight: lighter;
line-height: 1.7vw;
color: #00c844;
margin-left: 20vw;
margin-top: 5vw;
"
>
STEP 2:
</div>
<div class="paragraph3">
Each term was used as a search key on Google Images, and for each one we
downloaded the first 30 results, creating a body of 1200 images. (data
taken on 28 October 2022).
</div>
<div>
<iframe
src="https://docs.google.com/spreadsheets/d/e/2PACX-1vQyUyLSTUdu01FCwtRGJxhnHqk-JmqQSFkJySbsJbcLFZSmEjIHJqcm3Aq9R8A8prW1pDg5fLjk_SyJ/pubhtml?gid=0&single=true&widget=true&headers=false"
class="tabella"
>
</iframe>
</div>
<!-------------------------- STEP 3 ---------------------------------------------------------------------->
<div
style="
font-family: whyte;
font-size: 2vw;
font-weight: lighter;
line-height: 1.7vw;
color: #00c844;
margin-left: 20vw;
margin-top: 5vw;
"
>
STEP 3:
</div>
<div class="paragraph3">
We focused on photographic images, as they were a better fit for the
overall purpose of Plant Forward, so the dataset was cleaned by removing
images that were unsuitable for the overall analysis. <br />
Images consisting of two or more juxtaposed pictures (eg. before and
after) have been split into parts.<br />
The link to the complete dataset is available
<a
href="https://docs.google.com/spreadsheets/d/1ZBzhcRhCsklfkHIT1v_rGuGScTbcEhQeLCYX4GbUKLI/edit#gid=2065577090"
target="_blank"
class="click_link"
>here</a
>.<br />
These images were manually ordered to show the various phase of growth of
plants into forests since both were by far the most frequent subjects.
<br />
The process was divided into six phases (before, sapling, tree, boscage,
forest, and after), according to which we categorised the images.
</div>
<!-------------------------- OUTPUT ---------------------------------------------------------------------->
<div class="stick" id="sticky-output" style="left: 0.6vw">
<div class="output-p" id="stop2">
OUTPUT
<hr class="line_o" id="sticky-line_o" />
<div
style="
display: block;
margin-top: -2.44vw;
width: 97vw;
margin-left: -2.6vw;
"
>
<div class="sxtr"></div>
<div class="dxtr"></div>
</div>
</div>
</div>
<div class="paragraph4">
By arranging the archive so that plants are the central point of the
images, they are then morphed to present their growth into forests. This
embodies the process of reforestation in its broadest sense. <br />
The archive can be explored through a side chart where each image is
represented by a dot. Considering the focus on human presence, the dots
that are linked to images containing people are highlighted by a thicker
outline. The images are arranged in linear order from bottom to top to
follow the growth of plants into forests. <br />
The vertical axis is divided into 6 spans of the same area, one for each
phase, in which all the images belonging to that phase are placed. The
current phase is also represented by an icon placed on the right of the
cursor bar.<br />
<!-------------------------- ICONS ---------------------------------------------------------------------->
<div class="images" style="margin-left: 2vw">
<div class="col">
<img
src="Assets/Icons/p1.svg"
alt="WASTELAND"
style="width: 6vw; height: 8vw"
/>
<div
style="
color: #00c844;
width: 10vw;
margin-left: -2vw;
text-align: center;
"
>
WASTELAND
</div>
</div>
<div class="col">
<img
src="Assets/Icons/p2.svg"
alt="SAPLING"
style="width: 6vw; height: 8vw"
/>
<div
style="
color: #00c844;
width: 8vw;
margin-left: -1vw;
text-align: center;
"
>
SAPLING
</div>
</div>
<div class="col">
<img
src="Assets/Icons/p3.svg"
alt="TREE"
style="width: 6vw; height: 8vw"
/>
<div style="color: #00c844; width: 6vw; text-align: center">TREE</div>
</div>
<div class="col">
<img
src="Assets/Icons/p4.svg"
alt="BOSCAGE"
style="width: 6vw; height: 8vw"
/>
<div
style="
color: #00c844;
width: 8vw;
margin-left: -1vw;
text-align: center;
"
>
BOSCAGE
</div>
</div>
<div class="col">
<img
src="Assets/Icons/p5.svg"
alt="FOREST"
style="width: 6vw; height: 8vw"
/>
<div
style="
color: #00c844;
width: 8vw;
margin-left: -1vw;
text-align: center;
"
>
FOREST
</div>
</div>
<div class="col">
<img
src="Assets/Icons/p6.svg"
alt="TIMBER"
style="width: 6vw; height: 8vw"
/>
<div
style="
color: #00c844;
width: 8vw;
margin-left: -1vw;
text-align: center;
"
>
TIMBER
</div>
</div>
</div>
Images’ position on the horizontal axis is purely for visual purposes.
<br />
<br />
With a scrolling gesture, it is possible to explore the images by
observing the growth process. The physical movement of having to scroll
gives the perception of time passing as the plants grow while making
explicit both the need for representation, especially of human
intervention, in the longest phase of a forest's life: maintenance.<br />
<br />
The bar on the right left the user select between some visualisation
alternatives. Switching view mode there is the option to visit the archive
in a more standard gallery format. Focus can be shifted to the presence of
humans within the images by selecting the “human presence” option. To
better understand the context of use of each image, their source can be
also displayed by clicking on “view source”.
</div>
<!-------------------------- TEAM ---------------------------------------------------------------------->
<div class="team" id="sticky-team" style="margin-left: 0.6vw">
<div class="team-p" id="stop3">
TEAM
<hr class="line_t" id="sticky-line_t" />
<div
style="
display: block;
margin-top: -2.44vw;
width: 97vw;
margin-left: -2.6vw;
"
>
<div class="sxtr"></div>
<div class="dxtr"></div>
</div>
</div>
</div>
<div
class="images"
style="
font-family: whyte;
margin-left: 10vw;
margin-right: 5vw;
margin-top: 5vw;
"
>
<div class="col_t">
<div class="giulio"></div>
<div
style="
color: #00c844;
width: 16vw;
margin-left: 0vw;
text-align: center;
"
>
GIULIO ALESSANDRINI
</div>
</div>
<div class="col_t">
<div class="alex"></div>
<div style="color: #00c844; width: 16vw; text-align: center">
ALEXANDRA CHIOJDEANU
</div>
</div>
<div class="col_t">
<div class="andrea"></div>
<div
style="
color: #00c844;
width: 16vw;
margin-left: 0vw;
text-align: center;
"
>
ANDREA CORSINI
</div>
</div>
<div class="col_t">
<div class="greta"></div>
<div
style="
color: #00c844;
width: 16vw;
margin-left: 0vw;
text-align: center;
"
>
GRETA COZZA
</div>
</div>
</div>
<div
class="images"
style="
font-family: whyte;
margin-left: 10vw;
margin-right: 5vw;
margin-bottom: 8vw;
"
>
<div class="col_t">
<div class="miguel"></div>
<div
style="
color: #00c844;
width: 16vw;
margin-left: 0vw;
text-align: center;
"
>
MIGUEL GASHI
</div>
</div>
<div class="col_t">
<div class="alessia"></div>
<div
style="
color: #00c844;
width: 16vw;
margin-left: 0vw;
text-align: center;
"
>
ALESSIA MATTESINI
</div>
</div>
<div class="col_t">
<div class="ana"></div>
<div style="color: #00c844; width: 16vw; text-align: center">
ANA MUÇO
</div>
</div>
</div>
<!-------------------------- FOOTER ---------------------------------------------------------------------->
<footer id="footer">
<div id="students">
<h1>Authors</h1>
<ul>
<li>Giulio Alessandrini</li>
<li>Alexandra Chiojdeanu</li>
<li>Andrea Corsini</li>
<li>Greta Cozza</li>
<li>Miguel Gashi</li>
<li>Alessia Mattesini</li>
<li>Ana Muço</li>
</ul>
</div>
<div id="faculty">
<h1>Faculty</h1>
<ul>
<li>Michele Mauri</li>
<li>Ángeles Briones</li>
<li>Gabriele Colombo</li>
<li>Simone Vantini</li>
<li>Salvatore Zingale</li>
</ul>
</div>
<div id="assistants">
<h1>Teaching Assistants</h1>
<ul>
<li>Elena Aversa</li>
<li>Andrea Benedetti</li>
<li>Tommaso Elli</li>
<li>Beatrice Gobbo</li>
</ul>
</div>
<div id="contacts">
<div class="logo">
<img
src="Assets/footer/Logo_DensityDesign.svg"
alt="DensityDesign Lab"
/>
<img
src="Assets/footer/Logo_Polimi.svg"
alt="Politecnico di Milano"
/>
</div>
<p>
<a
href="https://densitydesign.github.io/teaching-dd18/"
target="_blank"
>Mediazioni Algoritmiche. Designing in a data intensive society.</a
>
</p>
<p>
The Final Synthesis Design Studio is a course at Politecnico di Milano
for the Master's Degree in Communication Design.
</p>
<ul>
<li id="social">
<a href="https://www.facebook.com/densitydesign"
><svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-facebook"
viewBox="0 0 16 16"
>
<path
d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"
></path></svg
></a>
<a href="https://twitter.com/densitydesign"
><svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-twitter"
viewBox="0 0 16 16"
>
<path
d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"
></path></svg
></a>
<a href="https://www.instagram.com/densitydesign/"
><svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-instagram"
viewBox="0 0 16 16"
>
<path
d="M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"
></path></svg
></a>
</li>
<li>
<a href="http://densitydesign.org/"
><svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-globe2"
viewBox="0 0 16 16"
>
<path
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855-.143.268-.276.56-.395.872.705.157 1.472.257 2.282.287V1.077zM4.249 3.539c.142-.384.304-.744.481-1.078a6.7 6.7 0 0 1 .597-.933A7.01 7.01 0 0 0 3.051 3.05c.362.184.763.349 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9.124 9.124 0 0 1-1.565-.667A6.964 6.964 0 0 0 1.018 7.5h2.49zm1.4-2.741a12.344 12.344 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332zM8.5 5.09V7.5h2.99a12.342 12.342 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.612 13.612 0 0 1 7.5 10.91V8.5H4.51zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741H8.5zm-3.282 3.696c.12.312.252.604.395.872.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a6.696 6.696 0 0 1-.598-.933 8.853 8.853 0 0 1-.481-1.079 8.38 8.38 0 0 0-1.198.49 7.01 7.01 0 0 0 2.276 1.522zm-1.383-2.964A13.36 13.36 0 0 1 3.508 8.5h-2.49a6.963 6.963 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667zm6.728 2.964a7.009 7.009 0 0 0 2.275-1.521 8.376 8.376 0 0 0-1.197-.49 8.853 8.853 0 0 1-.481 1.078 6.688 6.688 0 0 1-.597.933zM8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855.143-.268.276-.56.395-.872A12.63 12.63 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.963 6.963 0 0 0 14.982 8.5h-2.49a13.36 13.36 0 0 1-.437 3.008zM14.982 7.5a6.963 6.963 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008h2.49zM11.27 2.461c.177.334.339.694.482 1.078a8.368 8.368 0 0 0 1.196-.49 7.01 7.01 0 0 0-2.275-1.52c.218.283.418.597.597.932zm-.488 1.343a7.765 7.765 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z"
></path>
</svg>
densitydesign.org</a
>
</li>
<li>
<a href="mailto:[email protected]"
><svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-envelope-open"
viewBox="0 0 16 16"
>
<path
d="M8.47 1.318a1 1 0 0 0-.94 0l-6 3.2A1 1 0 0 0 1 5.4v.817l5.75 3.45L8 8.917l1.25.75L15 6.217V5.4a1 1 0 0 0-.53-.882l-6-3.2ZM15 7.383l-4.778 2.867L15 13.117V7.383Zm-.035 6.88L8 10.082l-6.965 4.18A1 1 0 0 0 2 15h12a1 1 0 0 0 .965-.738ZM1 13.116l4.778-2.867L1 7.383v5.734ZM7.059.435a2 2 0 0 1 1.882 0l6 3.2A2 2 0 0 1 16 5.4V14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5.4a2 2 0 0 1 1.059-1.765l6-3.2Z"
></path>
</svg>
email</a
>
</li>
</ul>
</div>
</footer>
<!-------------------------- STICKING SCRIPT ---------------------------------------------------------------------->
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function () {
myFunction();
};
// GET THINGS THAT HAVE TO STICK
var header = document.getElementById("stop");
var offset = document.getElementById("sticky-data");
var sticky_line = document.getElementById("sticky-line");
var header2 = document.getElementById("stop2");
var offset2 = document.getElementById("sticky-output");
var sticky_line2 = document.getElementById("sticky-line_o");
var header3 = document.getElementById("stop3");
var offset3 = document.getElementById("sticky-team");
var sticky_line3 = document.getElementById("sticky-line_t");
var offset_f = document.getElementById("footer");
// GET THE OFFSET POSITION
var sticky = offset.offsetTop;
var sticky2 = offset2.offsetTop;
var sticky3 = offset3.offsetTop;
var sticky4 = offset_f.offsetTop;
// Add the sticky class when you reach its scroll position. Remove "sticky" when you leave the scroll position
function myFunction() {
if (window.pageYOffset > sticky && window.pageYOffset) {
header.classList.add("sticky");
sticky_line.classList.add("line2");
} else {
header.classList.remove("sticky");
sticky_line.classList.remove("line2");
}
if (window.pageYOffset > sticky2 && window.pageYOffset) {
header.classList.remove("sticky");
header2.classList.add("stick2");
offset2.classList.add("stick2");
} else {
header2.classList.remove("stick2");
offset2.classList.remove("stick2");
}
if (window.pageYOffset > sticky3 && window.pageYOffset) {
header2.classList.remove("stick2");
offset2.classList.remove("stick2");
offset3.classList.add("stick3");
} else {
offset3.classList.remove("stick3");
console.log(window.innerHeight);
}
if (
window.pageYOffset > sticky4 - window.innerHeight / 10 &&
window.pageYOffset
) {
offset3.classList.remove("stick3");
} else {
offset3.classList.add("stick3");
}
}
</script>
</body>
</html>