Play/Pause Controls for Auto-Rotating Carousels
You'll learn: Why and how to give users control over auto-rotating carousels to meet accessibility standards and prevent cognitive overload.
Why Pause Matters
Auto-rotating carousels present moving content without user initiation—this creates serious problems. People with cognitive disabilities, reading difficulties, or vestibular disorders need time to process information at their own pace. WCAG Success Criterion 2.2.2 requires that any moving, blinking, or scrolling content lasting more than 5 seconds must be pausable by the user.
Think of it like an automatic slideshow presentation where someone keeps flipping slides while you're still reading. Frustrating, right? That's the daily experience for many users without pause controls.
What You Must Provide
Your carousel needs a clearly labeled play/pause button that:
- Stops all automatic rotation when activated
- Is keyboard accessible (already covered in your keyboard navigation lessons)
- Has clear visual indication of its current state (playing or paused)
- Is positioned prominently and easy to find
- Uses appropriate ARIA labels like
aria-label="Pause carousel"oraria-label="Play carousel"
Why This Prevents Cognitive Overload
When content moves automatically:
- Users can't finish reading before it changes
- Screen reader users lose their place
- People with attention difficulties get distracted
- Motion-sensitive users may experience discomfort
A pause button gives users agency—they control when and how they consume your content.
The Critical Rule
The carousel should start paused by default or pause when the user interacts with it (hover, focus). Never force users to hunt for a pause button while content is already moving.
Key Takeaway: Always provide an accessible, prominent play/pause button for auto-rotating carousels—it's not just good UX, it's a WCAG requirement that respects users' need to consume content at their own pace.