document.addEventListener("DOMContentLoaded", function() { // Initializing the swiper plugin for the slider. // Read more here: http://idangero.us/swiper/api/ var mySwiper = new Swiper('.swiper-container', { loop: true, speed: 1200, stopOnLastSlide: false, autoplay: {delay: 8000,}, pagination: { el: '.swiper-pagination' , clickable: true }, paginationClickable: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' }, spaceBetween: 10, }); });