Orbit documentation
Everything you need to build smooth, accessible carousels and sliders with Orbit.
What is Orbit?
Orbit is a small, dependency-free JavaScript library for carousels, sliders and galleries. It weighs 6 KB gzipped, works with a mouse, touch and the keyboard, and follows the WAI-ARIA carousel pattern, so screen readers announce every slide.
main.js
import Orbit from 'orbit-js'
const slider = new Orbit('#gallery', {
perView: 3,
loop: true,
})Features
- Accessible by default - keyboard controls, focus management and live announcements.
- Touch and drag - with momentum, and a reduced-motion mode.
- Responsive - change any option at any breakpoint.
- Framework friendly - plain JavaScript, with React and Vue wrappers.
Getting help
Read the FAQ, search these docs with Ctrl K, or ask in the community forum.