This is a live demo of Docs, the Bootstrap 5 documentation template: search with Ctrl+K, switch to dark mode, copy a code block. Get it in the store →

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

Getting help

Read the FAQ, search these docs with Ctrl K, or ask in the community forum.

Edit this pageLast updated 10 January 2027