autoplay: { delay: 8000, // 8 sekunder per slide disableOnInteraction: true, // Stanna autoplay om användaren interagerar }, on: { init: function () { const swiperEl = this.el; swiperEl.addEventListener('mouseenter', () => this.autoplay.stop()); swiperEl.addEventListener('mouseleave', () => this.autoplay.start()); } }