Carousel Animation: Sliders People Can Actually Use
How to design and animate carousels: when they work, avoiding auto-rotation, swipe physics, indicators, timing and the W3C carousel accessibility rules.
Core Takeaway
Carousels work for browsing a set of similar items people want to flip through, such as photos or products, and poorly for hiding important messages. Avoid auto-rotation, or pause it on hover, focus and with a visible control. Make swipes follow the finger and settle with a spring, show position clearly, and follow the W3C carousel guidance for keyboard and screen reader users.
When carousels work
Nielsen Norman Group's guidance on effective carousels: they suit sets of related items people want to browse, and they fail as a way to give several stakeholders the homepage hero. Content after the first slide gets far less attention, so do not put anything critical there.
Auto-rotation
Auto-advancing slides move away while people are reading.
- Prefer no auto-rotation
- If you must, give enough time to read and pause on hover and focus
- Provide a visible pause button (WCAG 2.2.2 requires a way to pause motion longer than five seconds)
- Stop rotating once the user interacts
Swipe physics
On touch screens, the slide should track the finger exactly, then settle to the nearest slide with a spring that carries the release velocity. A fast flick should advance even if the finger did not travel far. Snap points in CSS scroll snap give a native-feeling version with little code.
Indicators and accessibility
Show where people are ("3 of 8" or dots) and provide previous and next buttons. The W3C WAI carousel tutorial covers structure, labels, keyboard support and announcing slide changes. Under reduced motion, switch slides with a fade or instantly.
Building this in ExodeUI
ExodeUI, which we make, includes spring physics that carry release velocity, which is what makes a swiped card or slide feel native. For a standard image carousel, CSS scroll snap may be all you need.
Key Principles to Remember
- Use carousels for browsing similar items, not hiding messages
- Avoid auto-rotation; provide pause if you use it
- Track the finger and settle with a velocity-aware spring
- Show position and follow the W3C carousel guidance
Frequently Asked Questions
Sources
- Designing Effective Carousels — Nielsen Norman Group
- Carousels Tutorial — W3C WAI
- Understanding SC 2.2.2: Pause, Stop, Hide — W3C WAI