RetroDECK/docs/assets/js/Simple-Slider.js

19 lines
514 B
JavaScript
Raw Permalink Normal View History

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,
pagination: {
el: '.swiper-pagination' ,
clickable: true
},
paginationClickable: true,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev'
}
});
});