테스트중
This commit is contained in:
@@ -179,10 +179,11 @@ $(document).ready(function() {
|
|||||||
loop:true,
|
loop:true,
|
||||||
freeMode: true,
|
freeMode: true,
|
||||||
autoplay: {
|
autoplay: {
|
||||||
|
pauseOnMouseEnter: true,
|
||||||
delay:1,
|
delay:1,
|
||||||
disableOnInteraction: false,
|
disableOnInteraction: false,
|
||||||
},
|
},
|
||||||
speed: 4000,
|
speed: 3000,
|
||||||
breakpoints: {
|
breakpoints: {
|
||||||
// when window width is >= 320px
|
// when window width is >= 320px
|
||||||
320: {
|
320: {
|
||||||
@@ -195,21 +196,27 @@ $(document).ready(function() {
|
|||||||
640: {
|
640: {
|
||||||
spaceBetween: 20,
|
spaceBetween: 20,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
on: {
|
||||||
|
init: function (swiper) {
|
||||||
|
console.log('swiper initialized')
|
||||||
|
var swiperContainer = document.querySelector('.swiper-container');
|
||||||
|
|
||||||
});
|
// Pause autoplay when mouse enters the Swiper container
|
||||||
|
swiperContainer.addEventListener('mouseenter', function() {
|
||||||
|
|
||||||
$('.pdpDisplayThemeSwiper').on('mouseleave', function() {
|
|
||||||
console.log("시작")
|
|
||||||
swiperTheme.autoplay.start();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.pdpDisplayThemeSwiper').on('mouseenter', function() {
|
|
||||||
console.log("멈춰")
|
|
||||||
swiperTheme.autoplay.stop();
|
swiperTheme.autoplay.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Resume autoplay when mouse leaves the Swiper container
|
||||||
|
swiperContainer.addEventListener('mouseleave', function() {
|
||||||
|
swiperTheme.autoplay.start();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//마이페이지 lnb 스와이프
|
//마이페이지 lnb 스와이프
|
||||||
|
|
||||||
var ww = $(window).width();
|
var ww = $(window).width();
|
||||||
|
|||||||
Reference in New Issue
Block a user