퍼블리싱/라이브러리
[Swiper] loop 모드일때 duplication 이 제대로 안될때
임고미
2021. 3. 11. 13:38
728x90
300x250
loopedSlides: 1 을 넣어주면 된다
var swiper = new Swiper('.swiper-container', {
speed: 300,
spaceBetween: 50,
width:300,
loop:true,
loopedSlides: 1,
pagination:{
el:".swiper-scrollbar",
},
})
});
다른 해법
github.com/nolimits4web/swiper/issues/2629
In loop mode, duplicate slides are not being updated when the contents of the original slides change · Issue #2629 · nolimits4
This is a (multiple allowed): bug enhancement feature-discussion (RFC) Swiper Version: 4.2.6 Platform/Target and Browser Versions: All browsers, but tested on macOS, CHROME Live Link or JSFiddle/Co...
github.com
728x90
300x250