swiper
, swiper-wrapper
, swiper-slide
, and swiper-pagination
).To make Swiper.js pagination work in Webflow, ensure you’ve properly initialized the Swiper instance with matching selectors and correct configuration. If pagination styles like progress bar or bullets aren't working, it's likely due to one of several common issues. Here's how to troubleshoot and fix it.
swiper
,swiper-wrapper
,swiper-slide
.Example:
<div class="swiper"> <div class="swiper-wrapper"> <div class="swiper-slide">Slide 1</div> <div class="swiper-slide">Slide 2</div> </div> <div class="swiper-pagination"></div></div>
swiper
, swiper-wrapper
, etc.) that exactly match the names you’ll reference in the JS.Example for bullet pagination:
var swiper = new Swiper('.swiper', { loop: false, pagination: { el: '.swiper-pagination', clickable: true, },});
Example for progressbar pagination:
var swiper = new Swiper('.swiper', { loop: false, pagination: { el: '.swiper-pagination', type: 'progressbar', },});
swiper-pagination
container if Webflow’s UI doesn’t provide precise HTML structure.To fix your Swiper pagination in Webflow, ensure all HTML classes follow Swiper’s required format, that you’ve included the correct CSS and JS, and that the Swiper instance configuration matches your layout. Pagination won't work without the correct structure, style references, and script setup.