-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
40 lines (36 loc) · 1.03 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
var swiper = new Swiper('.swiper-container', {
preloadImages: false,
lazy: {
enabled: true,
loadPrevNext: true,
},
slidesPerView: 1,
spaceBetween: 20,
zoom: true,
keyboard: {
enabled: true,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
renderBullet: function (index, className) {
return '<span class="' + className + '">' + (index + 1) + '</span>';
}
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
$(".swiper-button-next").mouseover(function () {
$(".panels").css({ "box-shadow": "8px 0px 10px 1px rgba(0, 0, 0, 0.6)" });
});
$(".swiper-button-next").mouseleave(function () {
$(".panels").css({ "box-shadow": "none" });
});
$(".swiper-button-prev").mouseover(function () {
$(".panels").css({ "box-shadow": "-8px 0px 10px 1px rgba(0, 0, 0, 0.6)" });
});
$(".swiper-button-prev").mouseleave(function () {
$(".panels").css({ "box-shadow": "none" });
});