🆙 Fixed and no bugs anymore 🆙

This commit is contained in:
Remco
2026-01-07 20:01:53 +01:00
parent 6bf99066a5
commit 65ea6c167f
34 changed files with 63 additions and 63 deletions
@@ -1,17 +1,27 @@
import Swiper from 'swiper';
import { Autoplay, Pagination } from 'swiper/modules';
export default () => ({
const AtomSliders = {
init() {
const swiper = new Swiper('.swiper', {
modules: [Autoplay, Pagination],
autoplay: {
delay: 3000,
},
pagination: {
el: '.swiper-pagination',
},
// andere opties...
const swipers = document.querySelectorAll('.swiper');
swipers.forEach((swiperEl) => {
new Swiper(swiperEl, {
modules: [Autoplay, Pagination],
autoplay: {
delay: 3000,
disableOnInteraction: false,
},
pagination: {
el: '.swiper-pagination',
clickable: true,
},
loop: true,
slidesPerView: 1,
spaceBetween: 30,
});
});
}
});
};
export default AtomSliders;