同步
This commit is contained in:
30
js/tools.js
Normal file
30
js/tools.js
Normal file
@@ -0,0 +1,30 @@
|
||||
$(function () {
|
||||
var galleryThumbs = new Swiper('.gallery-thumbs', {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 10,
|
||||
freeMode: true,
|
||||
watchSlidesVisibility: true,
|
||||
watchSlidesProgress: true,
|
||||
noSwiping: true
|
||||
|
||||
});
|
||||
var galleryTop = new Swiper('.gallery-top', {
|
||||
spaceBetween: 10,
|
||||
thumbs: {
|
||||
swiper: galleryThumbs
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
});
|
||||
const mySwiper = new Swiper(".swiper", {
|
||||
loop: true, // 循环模式选项
|
||||
autoplay: true,
|
||||
// 如果需要分页器
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user