You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fixed and no bugs anymore 🆙
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user