forked from amakom/DVS-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
43 lines (41 loc) · 825 Bytes
/
script.js
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
$('.sponsor-logos').slick({
slidesToShow: 5,
slidesToScroll: 1,
autoplay:true,
autoplaySpeed: 1500,
arrows: false,
dots: false,
pauseOnHover: false,
responsive: [
{
breakpoint: 768,
settings: {
slidesToShow: 4,
slidesToScroll: 4,
infinite: false,
dots: false
}
},
{
breakpoint: 520,
settings: {
slidesToShow: 3,
slidesToScroll: 3
}
},
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
});
jQuery(document).ready(function( $ )
{ $('.counter').counterUp({
delay: 10,
time: 1000
});
});
window.addEventListener('scroll', function () {
let header = document.querySelector('header');
let windowPosition = window.scrollY > 700;
header.classList.toggle('scrolling-active', windowPosition);
})