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 →

Options

Every setting Orbit accepts, with its default.

All options

OptionTypeDefaultWhat it does
perViewnumber1How many slides show at once.
gapnumber16Space between slides, in pixels.
loopbooleanfalseGo back to the start after the last slide.
autoplaynumber | falsefalseMilliseconds between slides. Pauses on hover and focus.
arrowsbooleantrueShow previous and next buttons.
dotsbooleanfalseShow a button for each page.
dragbooleantrueAllow dragging with a mouse or a finger.
speednumber400Length of the slide animation, in milliseconds.
breakpointsobject{}Options to change at minimum widths.

Autoplay

Autoplay waits for the user: it pauses while the slider is hovered or focused, and stops for anyone who prefers reduced motion.

js
new Orbit('#hero', { autoplay: 5000, loop: true })
Use autoplay sparingly. Moving content can be hard to read. Always keep a visible pause control.

Breakpoints

Any option except breakpoints itself can change at a breakpoint. Orbit merges them from smallest to largest.

Edit this pageLast updated 10 January 2027