-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
110 lines (96 loc) · 2.21 KB
/
index.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
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
//Video Popup Close Btn Function
$(document).ready(function(){
$('.popup__close').click(function () {
$('.popup__video').get(0).pause();
$('.popup__video').get(0).currentTime=0;
});
$('#Intro-video-button').click(function() {
$('.popup__video')[0].play();
});
});
//AOS SCRIPT
AOS.init({
disable: function () {
var maxWidth = 900;
return window.innerWidth < maxWidth;
}
});
//Glide
$(document).ready(function(){
const config = {
type: 'carousel',
perView: 1,
gap: 20,
autoplay: true,
autoplay: 4000,
animationDuration:2000,
breakpoints: {
1600: {
gap: 2,
perView: 2,
peek: {
before: 20,
after: 20,
}
},
960: {
gap: 2,
perView: 1,
peek: {
before: 20,
after: 20,
}
},
500: {
gap: 1,
perView: 1,
peek: {
before: 10,
after: 10,
}
},
}
}
new Glide(".glide", config).mount()
})
$(document).ready(function(){
const config = {
type: 'carousel',
perView: 1,
autoplay: true,
autoplay: 3000,
animationDuration: 2500,
keyboard: true,
swipeThreshold: 10,
touchRatio:0.3,
breakpoints: {
1600: {
gap: 5,
perView: 2,
},
1200: {
gap: 5,
perView: 1,
peek: {
before:10,
after: 10,
},
},
900: {
perView: 1,
peek: {
before:20,
after: 20,
},
},
500: {
perView: 1,
peek: {
before: 30,
after: 30,
},
},
}
}
new Glide(".glide1", config).mount()
})