안녕하세요! swiper slide 가 마우스 오버했을 때 멈추게 하는 방법 부탁드립니다..ㅠㅠ!!
어떤 것을 추가해야 하나요..?
new Swiper("#mainVisual .swiper-container",{
effect:"slide",
speed:5000,
loop:true,
autoplay: {delay:2000
},
navigation:{
prevEl:"#mainVisual .btnPrev",
nextEl:"#mainVisual .btnNext"
},
pagination: {
el: "#mainVisual .pagination",
clickable:true
},
})
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
iBNeer
5년 전
$(".swiper-container").each(function(elem, target){
var swp = target.swiper;
$(this).hover(function() {
swp.autoplay.stop();
}, function() {
swp.autoplay.start();
});
});
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.