Magoo Component UI logo Magoo Component UI
← Catalog

Autoplay Carousel

carousel-autoplay organism experimental

A full-width single-slide hero rotator that auto-advances with dots, arrows and a progress bar, pausing on hover or focus.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
NoAutoplay

Props

NameTypeReq
items array ✓
interval enum (4 | 6 | 8)
autoplay boolean
show_arrows boolean
show_dots boolean
label string

Related components

How to use

The slides live in a horizontal snap track (one slide per view), so the first slide renders with no JavaScript and appears in screenshots. behavior.js reads data-autoplay and data-interval from the root: when data-autoplay is "true" it advances one slide every interval, wrapping to the first after the last, and pauses on hover/focus (resuming on leave/blur). The top progress bar fills over the interval and freezes while paused. Autoplay is always suppressed when the visitor prefers reduced motion; the arrows and dots still work in that case. The portable self-init reads config from data-* attributes — no props object is passed.

Use cases

media WCAG AA SEO 30 dir: both ai-generated