鍍金池/ 問答/HTML5  網(wǎng)絡(luò)安全  HTML/ swiper多列布局不能loop?

swiper多列布局不能loop?

var mySwiper = new Swiper('.swiper-container',{
  direction: 'vertical',
  loop: true,
  autoplay: {
    delay: 1000,
  },//可選選項(xiàng),自動(dòng)滑動(dòng)
  slidesPerView: 5,
  slidesPerColumn: 2,
})

如果不能loop怎么才能滑到最后一個(gè)瞬間到第一個(gè)
回答
編輯回答
尛曖昧

官方文檔有些
Swiper官網(wǎng)API

CSS代碼重新設(shè)置 swiper-slide 的高度
var mySwiper = new Swiper('.swiper-container',{
  direction: 'vertical',
  loop: true,
  autoplay: {
    delay: 1000,
  },//可選選項(xiàng),自動(dòng)滑動(dòng)
                slidesPerView: 'auto',

  // slidesPerView: 5,
  // slidesPerColumn: 2,
})
2017年8月5日 19:19