Accessible Carousels and Sliders (or Why to Skip Them)
Carousels and sliders are popular on homepages, but they are among the hardest components to make accessible, and they often perform poorly with everyone. Before building one, ask whether you need it.
Why carousels cause problems
- Moving content distracts and can make text hard to read
- Slides change before people finish reading
- Keyboard and screen reader users may struggle to operate the controls
- Touch users can trigger swipes by accident
- Content on later slides is often missed. Many visitors never interact with them at all
Consider showing the most important message statically. See hero section design best practices.
If you must use one
Let users control motion
- Do not auto-rotate by default if you can avoid it
- If something moves automatically for more than five seconds, provide a visible control to pause, stop, or hide it (WCAG 2.2.2, level A)
- Stop rotation when a user hovers over or focuses inside the carousel
- Respect reduced motion settings. See reduced motion and animation accessibility
Make controls keyboard and screen reader friendly
- Use real buttons for previous, next, and pause, with clear accessible names such as "Previous slide"
- Make controls focusable, with a visible focus style. See accessible focus styles
- Tell assistive technology which slide is current, for example "Slide 2 of 5"
- Do not hide slides in a way that leaves hidden focusable items; only the visible slide's controls and links should be reachable
- Avoid a live region that announces every automatic change; it can be overwhelming
Follow established patterns, such as those in the WAI-ARIA Authoring Practices, and test the result.
Provide touch alternatives
Swiping is a path-based gesture, so offer visible buttons as a single-pointer alternative. See accessible mobile gestures.
Keep content accessible
- Give images useful alt text. See alt text best practices
- Make sure text over images has enough contrast. See color contrast for accessible websites
- Keep slide text short and links clearly described
Better alternatives
- A single strong hero message and image
- A static grid of featured items, shown all at once
- A short list of testimonials instead of a rotating quote slider
- Tabs or accordions for grouped content. See accessible tabs and accordions
Speed matters too
Carousel scripts and many large images slow pages. See how to reduce JavaScript on your website.
Test it
Operate it with keyboard only, with a screen reader, and on a phone. Ask whether you could complete the same task if it were just a list. See how to test with a screen reader.
Common mistakes
- Auto-advance with no pause
- Tiny dots as the only controls
- Slides that rotate while focus is inside
- Important calls to action hidden on slide four
For content that is hidden until opened, read accessible tabs and accordions.