Magoo Component UI logo Magoo Component UI
← Catalog

Crossfade Carousel

carousel-fade organism experimental

A full-width hero rotator that cross-fades between stacked slides with dots and arrows, 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

All slides are stacked in one grid cell; the template's base state is opacity-100 so the first slide renders with no JavaScript and appears in screenshots. behavior.js calls setActive(0) at init to fade every other slide out, then advances by cross-fading. It reads data-autoplay and data-interval from the root: when data-autoplay is "true" it advances one slide every interval, wrapping around, and pauses on hover/focus (resuming on leave/blur). 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