A campaign banner can be perfectly readable until its product image slides across the screen when someone focuses its link. Give that interaction a still version: the offer and destination stay the same; only the movement changes.
Start with a complete still banner
Put the message and destination in ordinary HTML, visible before any animation runs. In this small example the product artwork is decorative; replace perfume.png with your own asset and /collection with the real destination. The link itself carries the complete action.
<a class="banner" href="/collection">
<span>Explore the fragrance collection</span>
<img class="banner-art" src="perfume.png" alt="">
</a>
.banner-art { transform: translateX(0); }
.banner:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
.banner-art { transition: transform 400ms ease; }
.banner:hover .banner-art,
.banner:focus-visible .banner-art { transform: translateX(12px); }
}
Here the still position is the default. The slide is added only when the browser reports no-preference; with reduce, the artwork stays still and the link, text and focus indicator remain available. no-preference means no motion preference was expressed, not that the reader explicitly requested animation. If your artwork communicates information not present in the link text, give it an appropriate text alternative instead of an empty alt.
The CSS media feature communicates a preference for reduced motion. WCAG 2.2 criterion 2.3.3 is Level AAA and concerns motion animation triggered by interaction, with an exception for essential motion. The W3C CSS technique is one way to meet that criterion, not a blanket accessibility certification for the banner.
Replay both settings
- Open the actual placement with the browser's motion preference set to
no-preference. Hover the link, then Tab to it: the artwork should slide, the focus outline should remain visible, and the link should work. - In browser DevTools, emulate
prefers-reduced-motion: reduce, or enable the operating system's reduced-motion setting and reload the placement if needed. Hover and focus the same link again. The artwork should remain still; the same message, focus indicator and destination must remain usable. - Switch the preference back and repeat. Also check touch and a narrow viewport: the still composition must not crop the message or conceal the link.
Check the delivered banner, not just its stylesheet. A CSS media query does not stop motion in a GIF, video, canvas or a separate script; use a still asset or adapt that playback owner as well. If the host accepts only a fixed creative, provide a static version and confirm how it will be served. Automatically moving content may also require a separate pause, stop or hide mechanism under WCAG 2.2.2; a reduced-motion preference alone is not that control.