HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/resources/js/site/components/ActivitySwiperNew.js
import Swiper, {Navigation, Pagination, Thumbs} from 'swiper';
import 'swiper/swiper-bundle.min.css'; // Ensure Swiper CSS is included

export default class ActivitySwiperNew {

    constructor(el) {
        this.el = el;

        setTimeout(() => {
            var swiper = new Swiper(el.querySelector('.js-main-activity-swiper'), {
                modules: [Navigation],
                navigation: {
                    nextEl: '.js-swiper-activity-button-next',
                    prevEl: '.js-swiper-activity-button-prev',
                    disabledClass: "is-disabled"

                },
                loop: false,
                slidesPerView: "auto",
                spaceBetween: 16,
                breakpoints: {
                    640: {
                        slidesPerView: 2,
                        spaceBetween: 10,
                    },
                    768: {
                        slidesPerView: 3,
                        spaceBetween: 20,
                    },
                    1200: {
                        slidesPerView: 4,
                        spaceBetween: 16,
                    },
                },
            });
        }, 500);
    }
}