GitHub

carousel

CSS scroll-snap carousel with optional prev/next arrows and dot navigation. Touch / swipe friendly out of the box. Requires pulse-ui.js for button and dot interactivity.

carousel({
  slides: [
    `<div class="slide">Slide 1</div>`,
    `<div class="slide">Slide 2</div>`,
    `<div class="slide">Slide 3</div>`,
  ],
})

Arrows and dots

carousel({
  slides: [ /* ... */ ],
  arrows: true,
  dots:   false,   // hide dot navigation
})
PropTypeDefault
slidesstring[] (HTML)[]Array of raw HTML strings — one per slide
arrowsbooleantrueShow prev/next arrow buttons
dotsbooleantrueShow dot navigation (hidden when only one slide)
classstring