Estimated reading time : 4 min · Published
Compare a visible gallery
List the images and their purposes. For three product views, a captioned gallery may avoid repeated switching. For a longer set, thumbnails or a list can make direct selection easier than many Next presses.
Keep the heading, main proposition and contact action outside rotation. Essential information should not depend on when someone looks at the page. Check cropping and faithful presentation, especially when a detail can change a purchase decision.
Give people control of movement
The W3C carousel pattern includes understandable controls and control over automatic rotation. Rotation stops when focus enters and does not resume without an explicit request. The pause, stop or hide criterion explains applicable conditions for moving content.
Manual rotation is often a simpler starting point. Test Next without unnecessarily moving focus. Hidden slides must not leave invisible links in keyboard navigation. Swiping may supplement visible controls rather than become the only way through the images.
Fictional acceptance scenario for an automatic carousel: enter with the keyboard, leave the component, then wait for another cycle. After focus has entered, rotation must remain stopped until an explicit restart request; leaving is insufficient. In the W3C model, the rotation control precedes the content in the tab order and its name describes the upcoming action, start or stop. Activating Next changes the view without moving focus into the new image.
Separate animated movement from automatic information updates. WCAG 2.2.2 has a duration condition exceeding five seconds for certain movement, but no five-second exception for automatic updates; its other conditions still apply. Removing a CSS transition does not disable periodic slide changes. For the optional announcement wrapper around slides in the W3C basic carousel, aria-live="off" accompanies automatic rotation and aria-live="polite" the non-automatic state. Check announcements without moving focus or repeating the entire page.
Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.
| Event | Expected rotation | Additional check |
|---|---|---|
| Focus enters the component | Stops | Restart control is reachable |
| Focus subsequently leaves | Remains stopped | No implicit restart after this pause |
| Explicit restart request | User-requested restart | Control name now offers stopping |
| Next button activated | User-selected view | Focus stays on Next, not moved into the image |
Connect media, captions and performance
Each view needs its matching caption, context-appropriate alternative text and rights information. An illustration must not be presented as a completed-project photograph. Check that switching updates the correct text and mobile cropping retains the described subject.
Load variants appropriate to display size and reserve dimensions. Twelve slides should not require twelve large downloads before the page can be read. Check the initial image, the next image and failed media without leaving an unexplained empty frame.
Example: show three product details
Educational example: a shop presents front, back and fastening detail with captions. A thumbnail gallery is compared with a manual carousel. Testing asks people to find the fastening and return to the general view on a phone and keyboard. Observations inform the choice without inventing a conversion gain.
Start visual work when a component approaches the relevant visible area.
Synthetic case: a gallery starts every animation as soon as the page opens. Observe its cards and start work at the relevant moment; also test leaving the screen. Geometric intersection proves neither reading nor attention. Keep essential images and links available when observation is unavailable.
- Useful content remains accessible and animations do not run needlessly outside their intended area.
- MDN Intersection Observer
API observing changes in an element’s intersection with a reference area without a continuous scroll loop.
Reference documents
- W3C carousel pattern · Source consulted
- pause, stop or hide criterion · Source consulted
- MDN Intersection Observer · Source consulted
Content updated on
