feat: respect prefers-reduced-motion for accessibility #49

Closed
opened 2026-06-04 12:01:59 +00:00 by jmiller · 1 comment
Owner

Summary

Honour the prefers-reduced-motion: reduce OS/browser setting by pausing the image slideshow, disabling slide transitions, and stopping Ken Burns zoom animation. This is a WCAG 2.1 AA requirement (Success Criterion 2.3.3).

Requirements

  • CSS: wrap transition/animation rules in @media (prefers-reduced-motion: no-preference)
  • JS: skip setInterval slideshow cycling when reduced motion is preferred; show only the first image
  • Video modes: optionally pause autoplay (configurable)
  • Add a visible pause/play button for slideshows regardless of motion preference

Acceptance Criteria

  • Slideshow stops on first image when reduced-motion is set
  • No CSS transitions or animations fire under reduced-motion
  • Video behaviour is configurable
  • Pause/play button works for slideshows
## Summary Honour the `prefers-reduced-motion: reduce` OS/browser setting by pausing the image slideshow, disabling slide transitions, and stopping Ken Burns zoom animation. This is a WCAG 2.1 AA requirement (Success Criterion 2.3.3). ## Requirements - CSS: wrap transition/animation rules in `@media (prefers-reduced-motion: no-preference)` - JS: skip `setInterval` slideshow cycling when reduced motion is preferred; show only the first image - Video modes: optionally pause autoplay (configurable) - Add a visible pause/play button for slideshows regardless of motion preference ## Acceptance Criteria - [ ] Slideshow stops on first image when reduced-motion is set - [ ] No CSS transitions or animations fire under reduced-motion - [ ] Video behaviour is configurable - [ ] Pause/play button works for slideshows
jmiller added the cssenhancementinvalidjoomla labels 2026-06-04 12:01:59 +00:00
Author
Owner

Branch created: feature/49-feat-respect-prefers-reduced-motion-for-

git fetch origin
git checkout feature/49-feat-respect-prefers-reduced-motion-for-
Branch created: [`feature/49-feat-respect-prefers-reduced-motion-for-`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomHero/src/branch/feature/49-feat-respect-prefers-reduced-motion-for-) ```bash git fetch origin git checkout feature/49-feat-respect-prefers-reduced-motion-for- ```
Sign in to join this conversation.
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomHero#49