-
Notifications
You must be signed in to change notification settings - Fork 1
/
services.js
37 lines (32 loc) · 904 Bytes
/
services.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
window.addEventListener("load", function(){
const consultingNav = document.querySelector("#nav-consulting");
const consultingCarousel = document.querySelector("#tabs-consulting");
const platformNav = document.querySelector("#nav-platform");
const platformCarousel = document.querySelector("#tabs-platform");
new Flickity(consultingCarousel, {
// options
prevNextButtons: false,
draggable: false,
pageDots: false
});
new Flickity(consultingNav, {
asNavFor: '#tabs-consulting',
pageDots: false,
prevNextButtons: false,
draggable: true,
groupCells: '100%'
});
new Flickity(platformCarousel, {
// options
prevNextButtons: false,
draggable: false,
pageDots: false
});
new Flickity(platformNav, {
asNavFor: '#tabs-platform',
pageDots: false,
prevNextButtons: false,
draggable: true,
groupCells: '100%'
});
});