-
Notifications
You must be signed in to change notification settings - Fork 0
/
team-splide-slider.js
47 lines (43 loc) · 1.09 KB
/
team-splide-slider.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
document.addEventListener("DOMContentLoaded", function () {
var centeredPaddingSlider = new Splide(".splide", {
type: "loop",
perMove: 1,
perPage: 2,
focus: "center",
gap: "2%",
padding: "2%",
speed: 1000,
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
//fixedWidth : '20rem',
pagination: true,
autoplay: "play",
breakpoints: {
// Webflow Max Width { 1920px-992px }
1919: {
perMove: 1,
perPage: 1,
gap: "4%",
padding: "20%"
},
// Webflow Max Width { 768px-990px }
991: {
padding: "15%"
},
// Webflow Max Width { 478px - 767px }
767: {
padding: "10%"
},
// Webflow Max Width { 0 - 476px }
477: {
padding: "10%"
}
},
classes: {
prev: "splide__arrow--prev",
next: "splide__arrow--next",
pagination: "splide__pagination",
page: "splide__pagination__page is-outlined"
}
});
centeredPaddingSlider.mount();
});