var swiperOptions = { loop: true, freeMode: true, spaceBetween: 0, grabCursor: true, slidesPerView: , 7 loop: true, autoplay: { delay: 1, disableOnInteraction: true }, freeMode: true, speed: 5000, freeModeMomentum: false }; var swiper = new Swiper(".swiper-container", swiperOptions); $(".swiper-container").mouseenter(function () { console.log("mouse over"); swiper.autoplay.stop(); }); $(".swiper-container").mouseleave(function () {
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter