document.addEventListener( 'DOMContentLoaded', function() { var splide = new Splide( '.splide', { type : 'loop', perPage: 2, focus : 'center', padding : '2rem', breakpoints: { 950: { perPage: 2, }, 600: { perPage: 1, }, }, } ); splide.mount(); } );