Components
Carousel
BetaA row of slides that scrolls sideways one page at a time.
Details
A row of slides that scrolls sideways one page at a time, with the pager below ("2 of 5", previous, next) and optional dots. Every page change (the pager, the dots, a page set from outside, the slides advancing by themselves) travels on one fast animator, the same in every browser; a finger, a trackpad or a wheel scroll the slides themselves, and a mouse can drag them: let go while still moving (a flick), they go on to the next page at the pointer's speed. It never holds the page's vertical scroll. How a slide arrives is the effect: it slides (the default), comes forward (depth), cross-fades in place (fade) or carries a picture that lags it (parallax); the effects are drawn from where the slides are, so every way of paging draws the same thing, in every browser. With autoplay the slides advance by themselves, pausing while someone points at, focuses or cannot see them, with a pause / play button and the current dot filling as the time runs. Behaviour by Ark UI's carousel (Zag); the controls are the real Pager and Button. Controlled or uncontrolled.
Behaviour from Ark UI, the carousel machine of Zag.