-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
684 lines (623 loc) · 27.2 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
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
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
<!DOCTYPE html>
<html>
<head>
<title>Sciovirtual - Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--favicon-->
<link rel="icon" type="image/png" href="/assets/img/faviconexample.png">
<link href="/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--lato fonts-->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@900&display=swap" rel="stylesheet">
<!--main stylesheet-->
<link href="/assets/style.css" rel="stylesheet">
<!--for preloader, currently disabled because js for repeadted elements is deleted
<link href="/assets/preloader.css" rel="stylesheet">-->
<!--for cardscroll-->
<link rel="stylesheet" type="text/css" href="/assets/cardscroll/cardscrollv2.css">
<!--css for navbar-->
<link href="/assets/timesaving/navbar/navbar.css" rel="stylesheet">
<!--css for waves-->
<link href="/assets/timesaving/wave/wave.css" rel="stylesheet">
<!--aos-->
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<style>
.nav-item:nth-child(1)>a {
color: lightgray !important;
}
.nav-item:nth-child(1):before {
content: "";
position: absolute;
width: 36px;
height: 3px;
top: 0;
left: calc(50% - 18px);
background: #E49526;
border-radius: 1px;
}
#menu li:nth-child(1)>a {
color: #E49526;
}
</style>
</head>
<body>
<!--navbar-->
<nav class="navbar fixed-top navbar-expand-custom">
<div class="container-lg">
<a class="navbar-brand" href="/index.html">
<img src="/assets/img/logo.png" alt="Sciovirtual logo" width="65" height="65"
class="navlogo">
<span class="">ScioVirtual</span>
</a>
<button class="navbar-toggler">
<div id="menuToggle">
<input type="checkbox" />
<span></span>
<span></span>
<span></span>
<!--mobile nav-->
<ul id="menu">
<li><a class="mobileNavItem" href="#">Home</a></li>
<li><a class="mobileNavItem" href="#">Summer</a></li>
<li><a class="mobileNavItem" href="#">Registration</a></li>
<li><a class="mobileNavItem" href="#">Schools</a></li>
<li><a class="mobileNavItem" href="#">Teach</a></li>
</ul>
</div>
</button>
<div class="collapse navbar-collapse justify-content-end">
<ul class="navbar-nav">
<li class="nav-item px-2">
<a class="nav-link overlineEffect" href="#">Home</a>
</li>
<li class="nav-item px-2">
<a class="nav-link overlineEffect" href="/anatomy-physiology.html">Summer</a>
</li>
<li class="nav-item px-2">
<a class="nav-link overlineEffect" href="#">Registration</a>
</li>
<li class="nav-item px-2">
<a class="nav-link overlineEffect" href="#">Schools</a>
</li>
<li class="nav-item px-2">
<a class="nav-link overlineEffect" href="#">Teach</a>
</li>
</ul>
</div>
</div>
</nav>
<!--navbar end-->
<div class="slide0">
<!--first sight section-->
<!--position set to relative because of paintdrop-->
<div class="firstsight" style="position:relative;">
<div class="container">
<div class="row">
<div class="col-lg-7 pt-5 pt-lg-0 d-flex align-items-center">
<div class="text-left firstsightText">
<h1><span style="color:#E49526">Mentorship</span> from the Nation's Best</h1>
<h2>Affordable live STEM courses from university and high school students. Get your first course <span
style="color:#E49526">free.</span></h2>
<div class="firstsightBtnContainer">
<div class="firstsightButton">
<a href="courses.html" class="orangebtnlink btn">Register</a>
</div>
<div class="firstsightButton">
<a href="courses.html" class="btn bluebtnlink">Volunteer</a>
</div>
</div>
</div>
</div>
<div class="col-lg-5 spaceshipContainer">
<!--https://micku7zu.github.io/vanilla-tilt.js/-->
<div id="tiltObject" class="spaceshipandearth" data-tilt-reverse="true" data-tilt
data-tilt-full-page-listening>
<img src="/assets/img/earth.png" style="width:100%;height:100%">
<img style="position: absolute; width: 90%; height: 90%; top: 50%; right: 50%; transform:rotate(25deg)"
src="/assets/img/spaceship.png">
</div>
</div>
</div>
</div>
<!--paintdrop-->
<!--if you change height of paintdrop remember to adjust the js for frost navbar effect and card scroll-->
<div style="background: url(/assets/img/paintdropv2.svg) repeat-x;width:100%;height:200px;position:absolute;bottom:-200px"></div>
</div>
</div>
<div class="container1">
<div id="slide1" class="slide1">
<!--our mission section-->
<div class="mission">
<div class="sciovirtualContainer">
<div class="container">
<h1>Our Mission</h1>
<p>ScioVirtual is a nonprofit organization that provides quality virtual science courses at an affordable
cost. All profits go towards hunger alleviation.</p>
<p class="missionEmphasis">Managed and instructed by university and high school competitors with extensive
state and national experience, courses emphasize mentorship. Veteran science competitors guide aspiring
students in thinking scientifically and studying effectively. Courses are catered towards students
interested in science competitions as well as learning advanced science not taught in school.</p>
<a href="courses.html" class="btn orangebtnlink">Our Story</a>
</div>
</div>
</div>
<!--white on blue wave-->
<div class="lbwholdtheholdtheocean">
<div class="lbwholdtheocean">
<div class="lbwocean">
<div class="lbwwave"></div>
<div class="lbwwave"></div>
</div>
</div>
</div>
<!--trusted by section-->
<div class="trust">
<div class="sciovirtualContainer">
<h1>Trusted By</h1>
<div class="container">
<div class="row">
<div class="col mt-3 mt-lg-0">
<img src="/assets/img/logoexample.png" alt="Sponsorship logos" class="trustLogo">
</div>
<div class="col mt-3 mt-lg-0">
<img src="/assets/img/logoexample.png" alt="Sponsorship logos" class="trustLogo">
</div>
<div class="col mt-3 mt-lg-0">
<img src="/assets/img/logoexample.png" alt="Sponsorship logos" class="trustLogo">
</div>
<div class="col mt-3 mt-lg-0">
<img src="/assets/img/logoexample.png" alt="Sponsorship logos" class="trustLogo">
</div>
<div class="col mt-3 mt-lg-0">
<img src="/assets/img/logoexample.png" alt="Sponsorship logos" class="trustLogo">
</div>
</div>
</div>
<div id="horizontalBox"></div>
<div class="container trustText">
<div class="row">
<div class="col-md-4 mt-3 mt-lg-0 trustbox">
<p>1700+ seats filled</p>
<p>Registered students in ScioVirtual courses</p>
</div>
<div class="col-md-4 mt-3 mt-lg-0 trustbox">
<p>13,500+ hours</p>
<p>Instructed by high school and university mentors</p>
</div>
<div class="col-md-4 mt-3 mt-lg-0 trustbox">
<p>70+ hours</p>
<p>Courses ranging all science disciplines</p>
</div>
</div>
</div>
</div>
</div>
<!--grey on light blue wave-->
<div class="glbholdtheholdtheocean">
<div class="glbholdtheocean">
<div class="glbocean">
<div class="glbwave"></div>
<div class="glbwave"></div>
</div>
</div>
</div>
<!--about section-->
<div class="about">
<div class="sciovirtualContainer">
<div class="container">
<h1>What We Offer</h1>
<div class="row">
<div class="col-lg-4 d-flex justify-content-center align-items-stretch">
<div>
<h3 class="aboutHeader">Experience</h3>
<img src="/assets/img/medal.png" class="img-fluid" style="width:200px;" alt="Medal">
</div>
</div>
<div class="col-lg-8 d-flex flex-column align-items-stretch justify-content-center aboutSection">
<h3>Mentorship from state and national-level medalists</h3>
<p>Instructors include national and state medalists with extensive competitive experience. Veteran
instructors mentor students to develop a toolkit to think scientifically and study effectively outside
of class.
</p>
</div>
</div>
<div class="row">
<div class="col-lg-4 order-lg-2 order-1 d-flex justify-content-center align-items-stretch">
<div>
<h3 class="aboutHeader">Fundraising</h3>
<img src="/assets/img/dollar.png" class="img-fluid" style="width:200px;" alt="NexEdge Innovations">
</div>
</div>
<div
class="col-lg-8 d-flex flex-column align-items-stretch justify-content-center order-lg-1 order-2 aboutSection">
<h3>All profits go to charities helping with COVID-19 relief</h3>
<p>All profits from our affordable registration fees are donated to the Community FoodBank. With the
ongoing pandemic, child hunger has been exacerbated. Financial aid is provided for all courses.
</p>
</div>
</div>
<div class="row">
<div class="col-lg-4 d-flex justify-content-center align-items-stretch">
<div>
<h3 class="aboutHeader">Collaboration</h3>
<img src="/assets/img/collaboration.png" class="img-fluid" style="width:200px;" alt="NexEdge In
novations">
</div>
</div>
<div class="col-lg-8 d-flex flex-column align-items-stretch justify-content-center aboutSection">
<h3>Stay connected with students across the country</h3>
<p>Virtual courses allow students to stay connected with others across the country during these isolated
times. Classes are engaging with problem sets, valuable resources, and original tests in addition to
icebreakers and other fun activities!
</p>
</div>
</div>
<div class="courseQuality">
<h3>Course Quality</h3>
<div class="row">
<div class="col-md-4 d-flex align-items-center coursequalityBorder">
<div>
<h4>Domain Supervisors</h4>
<p>Subject specialists oversee the content of all courses falling in their respective domains.</p>
</div>
</div>
<div class="cqbottomborder"></div>
<div class="col-md-4 d-flex align-items-center coursequalityBorder">
<div>
<h4>Course Managers</h4>
<p>Ensure the quality and consistency of all course material as well as how they are being taught.
</p>
</div>
</div>
<div class="cqbottomborder"></div>
<div class="col-md-4 d-flex align-items-center">
<div>
<h4>Experienced Instructors</h4>
<p>Instructors are from powerhouse schools across the nation with extensive competition and research
experience.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--blue on grey wave-->
<div class="bgholdtheholdtheocean">
<div class="bgholdtheocean">
<div class="bgocean">
<div class="bgwave"></div>
<div class="bgwave"></div>
</div>
</div>
</div>
<!--testimonials + yearRound section-->
<div class="testimonialsyearRound" style="position:relative">
<!--
<div style="position:absolute; bottom:0px;right:0px;background-color:#121940;z-index:3;">
<div style="position:relative;height:200px;width:200px">
<div style="position:absolute;height:100%;width:100%;background-color:#121940;opacity:0.5;"></div>
<img src="/assets/img/justearth.png" width="200px"style="z-index:3" >
</div>
</div>-->
<div class="sciovirtualContainer">
<div class="container">
<!--year round section-->
<div class="yearRound">
<div class="row">
<div class="col-md-8 align-items-center d-flex">
<div>
<h1 class="yearroundHeading">Year-Round Courses</h1>
<p>Year-round science & technology courses offered ranging from astronomy to genetics, through
computer science! <br>Courses run for 11 weeks and each registration allows for a student to
enroll in three courses.</p>
<div class="yearroundBtnContainer">
<div class="yearroundButton">
<a href="courses.html" class="orangebtnlink btn">Register</a>
</div>
<div class="yearroundButton">
<a href="courses.html" class="btn bluebtnlink">Logistics</a>
</div>
</div>
</div>
</div>
<div class="col-md-4 d-flex align-items-center">
<img class="img-fluid bigGlobe" src="/assets/img/earth.png">
</div>
</div>
</div>
<!--testimonials section-->
<div class="testimonial">
<div class="row">
<div class="col-sm-6 testimonialTile" data-aos="zoom-in">
<p>"The teachers are really helpful and knowledgeable. They make the kids understand how things work
and
also
tell the kids their own experiences."</p>
<p>- Dhruv, Parent of 6th grader</p>
</div>
<div class="col-sm-6">
<img class="img-fluid" style="position:relative;left:30px;bottom:30px;transform: rotate(20deg);"
src="/assets/img/meteor.png" width="200px">
</div>
</div>
<div class="row">
<div class="col-sm-6 order-sm-2 order-1 testimonialTile" data-aos="zoom-in">
<p>"I enjoy learning about all of these different topics from students who have already gone through
these
sorts
of programs."</p>
<p>- Tanav, 8th Grade Student</p>
</div>
<div class="col-sm-6 order-2 order-sm-1">
<img style="position:relative;top:40px;right:60px;transform:rotate(290deg)" class="img-fluid"
src="/assets/img/skinnyrock.png" width="80px">
</div>
</div>
<div class="row">
<div class="col-sm-6 testimonialTile" data-aos="zoom-in">
<p>"I love the kindness and patience of the instructors. I really can't think of a way to make my
experience
any
better. "</p>
<p>- 6th Grade Student</p>
</div>
<div class="col-sm-6">
<img class="img-fluid" src="/assets/img/tworocks.png" width="130px"
style="position:relative;bottom:30px;right:100px">
</div>
</div>
<div class="row">
<div class="col-sm-6 order-1 testimonialTile order-sm-2" data-aos="zoom-in">
<p>"My daughter is really enjoying the courses! Didn’t expect that virtual classes can be so
interesting
and
fun-filled."</p>
<p>- Akshara, Parent of 7th grader</p>
</div>
<div class="col-sm-6 order-sm-1 order-2">
<img class="img-fluid" src="/assets/img/meteor.png" width="130px" style="position:relative;transform:rotate(10deg) scaleX(-1);left:100px;
">
<img class="img-fluid" src="/assets/img/skinnyrock.png" width="50px"
style="position:relative;top:200px;right:200px;">
</div>
</div>
<div class="row">
<div class="col-sm-6 testimonialTile" data-aos="zoom-in">
<p>"I appreciate that my son is engaged and enjoys learning new material. School is usually boring for
him,
but
the courses have him stretched to learn new things!"</p>
<p>- Parent of 5th Grader</p>
</div>
<div class="col-sm-6">
<img class="img-fluid" src="/assets/img/skinnyrock.png" width="65px"
style="position:relative;transform:scaleX(1.5) scaleY(1.7) rotate(80deg);left:150px;top:100px">
</div>
</div>
<div class="row">
<div class="col-sm-6 order-1 testimonialTile" data-aos="zoom-in">
<p>"Was super fun and exciting. The courses taught me the basic knowledge of science and how to get
better
at
competitive science."</p>
<p>- Emily, 7th Grade Student</p>
</div>
<div class="col-sm-6">
<img class="img-fluid" src='/assets/img/tworocks.png' width="158px"
style="transform: rotate(30deg) scaleX(-1);position:relative;right:160px;bottom:10px; ">
</div>
</div>
<div class="row">
<div class="col-sm-6 testimonialTile order-sm-1 order-2" data-aos="zoom-in">
<p>"My favorite thing about the courses is what I have learned, there is nowhere else like ScioVirtual
where
you
can learn so much, so quickly, in a fun and helpful environment."</p>
<p>- Sophia, an 8th-grade student</p>
</div>
<div class="col-sm-6 order-sm-2 order-1">
<img class="img-fluid" src="/assets/img/meteor.png" width="130px"
style="position:relative;right:200px;transform:rotate(20deg);top:50px;">
<img class="img-fluid" src="/assets/img/skinnyrock.png" width="60px"
style="background-color:pink;transform:rotate(20deg) scaleX(1.5) skew(10deg,10deg);position:relative;left:237px;top:149px">
</div>
</div>
<div class="row">
<div class="col-sm-6 order-sm-2 order-2 testimonialTile" data-aos="zoom-in">
<p>"I enjoy that we are able to do what we enjoy and understand more about that particular field."</p>
<p>- 8th Grade Student</p>
</div>
<div class="col-sm-6 order-sm-1 order-1">
<!--placeholder on mobile screens-->
<div style="height:100px;width:50px;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<hr>-->
<!--Footer Starts-->
<div class="footer">
<div class="sciovirtualContainer">
<div class="container">
<div class="seperator"></div>
<div class="row">
<div class="footer-section col-lg-4 col-md-12 order-lg-1 order-5 d-flex align-items-center">
<div style="position:relative;left:50%; transform:translateX(-50%);">
<img src="/assets/img/logo.png" alt="Sciovirtual logo" width="40" height="40" class="img-fluid"
style="left:50%; position:relative;transform:translateX(-50%)">
<p style="text-align:center">©2021 by
the ScioVirtual Foundation. All rights reserved.</p>
</div>
</div>
<div class="footer-section col-lg-2 col-6 col-md-3 order-lg-2 order-1">
<h2>About Us</h2>
<div class="orangeLine"></div>
<a href='#'>Privacy Policy</a>
<a href='#'>Our Team</a>
<a href='#'>Our Goal</a>
<a href='#'>Donate</a>
</div>
<div class="footer-section col-lg-2 col-6 order-lg-3 order-2 col-md-3">
<h2>Navigation</h2>
<div class="orangeLine"></div>
<a href='#'>Registration</a>
<a href='#'>Schools</a>
<a href='#'>Resources</a>
<a href='#'>Join Us</a>
<a href="#">Abouts Us</a>
</div>
<div class="footer-section col-lg-2 col-6 order-lg-4 mt-md-0 mt-5 order-3 col-md-3">
<h2>Navigation2</h2>
<div class="orangeLine"></div>
<a href='#'>Registration</a>
<a href='#'>Schools</a>
<a href='#'>Resources</a>
<a href='#'>Join Us</a>
<a href="#">Abouts Us</a>
</div>
<div class="footer-section col-lg-2 col-6 order-lg-5 mt-md-0 mt-5 order-4 col-md-3">
<h2>Contact Us</h2>
<div class="orangeLine"></div>
<a href='#'>Email Us</a>
<a href='#'>Apply as an Instructor</a>
<a href='#'>Lead Your School Chapter</a>
<a href='#'>FAQs</a>
</div>
</div>
</div>
</div>
<!--<div class="footer-bottom">
<p><img src="/assets/img/logo.png" alt="Sciovirtual logo" width="40" height="40" class="img-fluid">©2021 by
the ScioVirtual Foundation. All rights reserved.</p>
</div>-->
</div>
</div>
</div>
<!--spaceship animation-->
<script type="text/javascript" src="/assets/vanilla-tilt/vanilla-tilt.min.js"></script>
<!--jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
let destroyBox = document.querySelector("#tiltObject");
VanillaTilt.init(destroyBox);
function red() {
destroyBox.vanillaTilt.destroy();
}
function orange() {
VanillaTilt.init(destroyBox);
}
var bounds = [
{ min: 0, max: 992, func: red },
{ min: 992, func: orange }
];
var resizeFn = function () {
var lastBoundry; // cache the last boundry used
return function () {
var width = window.innerWidth;
var boundry, min, max;
for (var i = 0; i < bounds.length; i++) {
boundry = bounds[i];
min = boundry.min || Number.MIN_VALUE;
max = boundry.max || Number.MAX_VALUE;
if (width > min && width < max
&& lastBoundry !== boundry) {
lastBoundry = boundry;
return boundry.func.call(boundry);
}
}
}
};
$(window).resize(resizeFn());
$(document).ready(function () {
$(window).trigger('resize');
});
</script>
<!--bootstrap-->
<script type="text/javascript" src="/assets/bootstrap/js/bootstrap.bundle.min.js"></script>
<!--preloader, currently disabbled
<script src="/assets/preloader.js"></script>-->
<!--cardscroll-->
<script>
window.addEventListener("resize", function () {
jQuery(document).ready(function () { //wait for the document to load
$('body').each(function () { //loop through each element with the .dynamic-height class
/*$(this).css({
'height': $('#slide1').outerHeight() + 'px' //adjust the css rule for margin-top to equal the element height - 10px and add the measurement unit "px" for valid CSS
});*/
var rock = $('#slide1').outerHeight();
var paper = $(".slide0").outerHeight() + 200;
var tripod = paper * 2 + "px";
var scissor = rock + paper + 'px';
$(this).css('height', scissor);
$('.container1').css('height', tripod);
});
});
});
jQuery(document).ready(function () { //wait for the document to load
$('body').each(function () { //loop through each element with the .dynamic-height class
/*$(this).css({
'height': $('#slide1').outerHeight() + 'px' //adjust the css rule for margin-top to equal the element height - 10px and add the measurement unit "px" for valid CSS
});*/
var rock = $('#slide1').outerHeight();
var paper = $(".slide0").outerHeight() + 200;
var tripod = paper * 2 + "px";
var scissor = rock + paper + 'px';
$(this).css('height', scissor);
$('.container1').css('height', tripod);
});
});
</script>
<script type="text/javascript" src="/assets/cardscroll/cardscroll.js"></script>
<!--frosted navbar-->
<script type="text/javascript">
/* Listen to scroll to change header opacity class*/
function checkScroll() {
var startY = $('.slide0').height() + 200; //The point where the navbar changes in px
if ($(window).scrollTop() > startY) {
$('.navbar').addClass("scrolled");
} else {
$('.navbar').removeClass("scrolled");
}
}
if ($('.navbar').length > 0) {
$(window).on("scroll load resize", function () {
checkScroll();
});
}
</script>
<!--original code
/**
* Listen to scroll to change header opacity class
*/
function checkScroll(){
var startY = $('.navbar').height() * 2; //The point where the navbar changes in px
if($(window).scrollTop() > startY){
$('.navbar').addClass("scrolled");
}else{
$('.navbar').removeClass("scrolled");
}
}
if($('.navbar').length > 0){
$(window).on("scroll load resize", function(){
checkScroll();
});
}-->
<!-- animation on scroll-->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
var fired = false;
$(window).scroll(function () {
if ($(window).scrollTop() > $('.slide0').height() + 100 && fired === false) {
AOS.init();
fired = true;
}
});
</script>
</body>
</html>