A client-side content carousel library. Vanilla ES6 JS, lightweight, ADA compliant, and responsive.
Minimal footprint with tree-shaking support for modern bundlers
Swipe fluidly on mobile devices with smooth touch gestures and native-like scrolling experience
Built with accessibility in mind, supporting keyboard navigation and screen readers
Automatically adapts to different screen sizes and touch devices
Customize UI nav options like arrows, dots, and scrollbar per breakpoint
Pure JavaScript implementation, no external dependencies required
Coming soon!
For development.
flo-slide/src/ to your project.For production deployments.
flo-slide/ folder.npm install.npm run build.dist/flo-slide.min.js to your project.window.FloSlide is available on the page in dev tools console../dist/styles.css is also loaded on the pageBasic carousel with default settings:
// Basic usage
FloSlide('.js-my-basic-carousel');
Basic carousel with default settings:
FloSlide('.js-my-fancy-carousel', {
slidesToShow: 1.25,
slidesToScroll: 2,
arrows: false,
dots: false,
scrollbar: true,
clickDrag: true,
customArrows: '',
responsive: {
600: {
slidesToShow: 2.25,
slidesToScroll: 2,
scrollbar: false,
dots: true
},
1028: {
slidesToShow: 4,
slidesToScroll: 2,
scrollbar: false,
dots: true,
arrows: true
}
}
})
Mobile-Up Cascading Behavior: Configure your base options for
the
smallest devices outside the responsive object. Configured options cascade upward to larger
breakpoint ranges unless you explicitly defined again.
swipe for truncated data
| Option | Type | Default | Description |
|---|---|---|---|
slidesToShow |
Number | 4 | Number of slides to show at once |
slidesToScroll |
Number | 1 | Number of slides to scroll at a time |
arrows |
Boolean | true | Show navigation arrows |
dots |
Boolean | true | Show pagination dots |
fade |
Boolean | false | Enable fade transition effect between slides |
scrollbar |
Boolean | true | Show custom scrollbar for navigation |
clickDrag |
Boolean | true | Enable click and drag navigation |
customArrows |
String | null | Custom HTML string for arrow elements (e.g., SVG) |
responsive |
Array | [] | Responsive breakpoint settings |
flo-slide supports all modern browsers including: