Search
Enter at least two characters without personal information.

    LibraryArticles & FAQ Your projectRequest a quote
    LanguageEN
    Practical guides

    Choose and test an image carousel or gallery

    A carousel presents part of a collection in sequence; a gallery shows several items together. Choose by task: browse a series, compare details or find one photograph. Animation alone does not establish better understanding.

    Go to the method

    Person sorting images in front of a screen
    AI-generated illustration

    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

    Acceptance sequence: automatic rotation, focus entry and pause, focus departure without restart, then explicitly requested restart.
    Illustration · Educational sequence: focusin stops rotation; focusout leaves it stopped; Start represents an explicit restart request. This describes behaviour, not production-ready code.

    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.

    Automatic carousel: four acceptance observations
    EventExpected rotationAdditional check
    Focus enters the componentStopsRestart control is reachable
    Focus subsequently leavesRemains stoppedNo implicit restart after this pause
    Explicit restart requestUser-requested restartControl name now offers stopping
    Next button activatedUser-selected viewFocus 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

    Content updated on

    Acceptance matrix to adapt to your project

    These proposed checks use synthetic cases. Decide the required behaviour with the team, record the result and assign unresolved gaps before release.

    Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.

    Test cases, expected outcomes and useful evidence
    CaseExpected outcomeEvidence to retain
    Keyboard movementEvery view has a named route to itNamed control, slide number and focus order after two slide changes.
    Hidden slideNo invisible link takes focusTab sequence
    Image and captionBoth identify the same visualScreenshot of each view
    Slow networkThe page makes sense before all images loadTransferred size and loading state

    Frequently asked questions

    Must a carousel start automatically?

    No. Manual browsing can provide more control and fewer behaviours to manage.

    Are small dots below the image enough?

    Their role and destination must be understandable. Provide usable controls and test reaching the desired view by keyboard.

    Can a gallery open an enlarged view?

    Yes, but enlargement also needs closing, a name and focus return. The dialog guide extends that check.