const swiper = new Swiper('.swiper-container', {
// Default parameters
slidesPerView: 1,
spaceBetween: 10,
pagination: {
el: '.swiper-pagination'
},
// Responsive breakpoints
breakpoints: {
// when window width is >= 320px
320: {
pagination: {
type: 'bullets'
}
},
// when window width is >= 1200px
1200: {
pagination: {
type: 'fraction'
}
}
}
})