Infinite Loop
Seamless wrapping using DOM clone technique. No visual jump, no gap. Works with
multiple items per view.
loop: true
Pagiflow is a powerful, zero-dependency vanilla JavaScript slider and carousel library. 30+ options. Infinite loop, fade, grid, thumbnails, auto-scroll, RTL, sync — everything out of the box. No jQuery. No build step.
// 1. Include the script
// <script src="pagiflow.min.js"></script>
// 2. Initialize — that's it.
const slider = Pagiflow('#mySlider', {
loop: true,
nav: true,
paginate: true,
autoplay: true,
autoplayDelay: 3000,
// Responsive breakpoints
responsive: {
0: { itemsPerSlide: 1 },
768: { itemsPerSlide: 2 },
1200: { itemsPerSlide: 3 }
}
});
// Methods are chainable
slider.goTo(2).play();
Every major slider feature built-in. No plugins, no add-ons, no bloat.
Toggle options in real time and see the slider update instantly.
No build tools, no configuration files, no framework lock-in. Just include and go.
Pagiflow vs Swiper, Slick, Splide & more. See a detailed feature-by-feature comparison with every major JavaScript slider library.
loop: true in your options. Pagiflow uses the DOM clone technique —
it silently prepends and appends copies of your slides, creating seamless infinite scrolling without any
visual jump. It works with all other options: multiple items per view, autoplay, touch swipe, and fade.
itemsPerSlide to the number of visible slides you want. Combined with
gap for spacing and responsive for breakpoints, you can build fully responsive
carousels that show 1 slide on mobile, 2 on tablet, and 3+ on desktop. Example:
Pagiflow('#s', { itemsPerSlide: 3, gap: 16, responsive: { 0: { itemsPerSlide: 1 }, 768: { itemsPerSlide: 2 } } })