[자바스크립트] Swiper slidesPerView 오류 해결하기
자바스크립트에서 Swiper 라이브러리를 사용할 때, slidesPerView가 적용되지 않는 오류가 있었다. slidesPerView는 한번에 몇개의 요소까지 화면에 표시할 것인지를 설정하는 속성인데, 이 속성을 무시하고 전체 화면에 slide 될 요소들이 모두 표시되었다. new Swiper('.promotion .swiper-container', { slidesPerView: 3, spaceBetween: 10, centeredSlides: true, loop: true, autoplay: { delay: 5000 }, pagination: { el: '.promotion .swiper-pagination', clickable: true }, navigation: { prevEl: '.promoti..
2022. 4. 25.