E-commerce

Building accessible Shopify theme carousels

Design carousel controls that work with touch, keyboard and reduced-motion preferences.

Anant Dhiman · · 1 min read

Product carousel with arrows, pagination and accessibility controls
On this page

Start with native scrolling

A horizontal scroll container with scroll snap provides a useful baseline without a heavy slider dependency. Keep links and buttons inside slides keyboard accessible.

.carousel { overflow-x: auto; scroll-snap-type: x mandatory; }
.slide { scroll-snap-align: start; }

Keep controls synchronized

Derive the active slide from the actual scroll position rather than assuming every interaction comes from a next button. Touch and trackpad scrolling must update pagination too.

Respect motion preferences

Provide a pause control for automatic movement. Stop movement during keyboard focus and avoid resuming unexpectedly when a user has explicitly paused it.

Test on devices

Check narrow mobile viewports, tablets, keyboard navigation and reduced-motion settings. A desktop mouse alone is not sufficient.

← All insights

Related articles