Swiper

スライドの表示枚数

script
                  
    window.onload = function () {
      const swiper = new Swiper(".swiper", {
        loop: true,
        slidesPerView: 2, //表示枚数
        slidesPerGroup: 1, //動かす枚数
      });
    }
                  
                
オプション
                  
                    loop:'true'
                    ・スライドの無限ループ
                    'false'(デフォルト/ループ無効)
                    'true'(ループ有効)

                    slidesPerView: 2,
                    ・何枚のスライドを表示するかを指定

                    slidesPerGroup: 1,
                    ・1度の移動で、何枚のスライドを移動するかを指定
                  
                

・「Splide」のスライドの表示枚数