Swiper中文论坛
标题:
Swiper3 怎么默认显示第二个slider
[打印本页]
作者:
tinganh
时间:
2016-12-25 10:55
标题:
Swiper3 怎么默认显示第二个slider
http://www.swiper.com.cn/demo/23-thumbs-gallery.html
怎么默认显示第二张
作者:
tinganh
时间:
2016-12-27 10:18
<script>
var galleryTop = new Swiper('.gallery-top', {
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
spaceBetween: 0,
initialSlide: 1,
loop: true,
loopedSlides: 3,
slidesPerView:1,
centeredSlides: true,
});
var galleryThumbs = new Swiper('.gallery-thumbs', {
spaceBetween: 10,
centeredSlides: true,
initialSlide: 1,
loop: true,
loopedSlides: 3,
slidesPerView:2,
centeredSlides: true,
slidesPerView: 3,
touchRatio: 0.2,
slideToClickedSlide: true
});
galleryTop.params.control = galleryThumbs;
galleryThumbs.params.control = galleryTop;
</script>
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2