forked from ModelEarth/localsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-script-removed.html
42 lines (40 loc) · 1.03 KB
/
index-script-removed.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
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1,
spaceBetween: 30,
/* mousewheel: true, */ /* In addition to hold and swipe. Jumps to quick and bypasses elements below images. */
/* Issue: the last slide is also preloaded. */
slidesPerView: 'auto',
lazy: {
loadPrevNext: true,
},
/* preloadImages: false, No difference */
loop: true,
/* effect: 'fade', */
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
hashNavigation: {
watchState: true,
},
keyboard: {
enabled: true,
onlyInViewport: false
},
direction: 'horizontal',
history: {
keepQuery: true
},
/*
freeMode: true,
scrollbar: {
el: '.swiper-scrollbar',
},
*/
});
// Fast forward: https://codepen.io/sampotts/pen/jARJYp
//player.play();