오늘은 필요할때 매번 까먹는...그런 기능중 하나인
스와이퍼 마우스 액션 적어 볼까요...^^
/***** 스크립트 *****/
var myswiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
paginationClickable: true,
spaceBetween: 30,
centeredSlides: true,
autoplay: 4000,
autoplayDisableOnInteraction: false,
noSwiping: true,
noSwipingClass: 'no-swiping'
});
$( ".swiper-slide" ).hover(
function() {
myswiper .autoplay.stop();
}, function() {
myswiper .autoplay.start();
}
);
※ myswiper 변수명을 주의 하세요...!!