Carousel

Shows a list a few items at a time. Page through it with the arrows, the indicators, a swipe or a mouse drag, or let it play on its own.

Features7APIThemingAccessibility

Basic

numVisible items are shown at once and each step moves numScroll of them. The page is two-way with [(page)].

Page 1 · last added: nothing

Effects

effect sets how a page replaces the previous one: slide (default) moves the strip; fade, zoom, blur and flip let the visible items leave and the next ones arrive one after another; none jumps.

SlideFadeZoomBlurFlipNone

Responsive

responsiveOptions set numVisible and numScroll per window width (breakpoint is a max width). circular goes on from the last page to the first.

Vertical

orientation="vertical" stacks the items; verticalViewPortHeight sets the height of the visible area.

Autoplay

autoplayInterval turns pages on its own and loops. It pauses while the pointer or focus is on the carousel and stops after a manual step; startAutoplay() and stopAutoplay() control it from code.

Templates

txCarouselHeader and txCarouselFooter add content around the carousel; txCarouselIndicator draws own indicators, here page numbers.

Design tokens

dt changes the tokens of one carousel: round indicators and a faster slide.