document.addEventListener("DOMContentLoaded", function() { var slider = new Swiper('.slider-218', { direction: 'horizontal', effect: 'slide', loop: true, autoplay: { delay: 5000, }, speed: 1500, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', } }); });