Skip to main content


Instance methods are available after Carousel's initialization.

const myCarousel = new Carousel();
// Methods usage example:myCarousel.slideNext();

Instance Methods#

slideNext(): void#

Slide to the next page.

slidePrev(): void#

Slide to the previous page.

slideTo(page: Number[, params: Object]): void#

Slide to page by its index with optional parameters.

updatePage(): void#

Perform all calculations and center current page.

destroy(): void#

Destroy the instance.