How to add a pause button to an autoplay carousel (or video)
If a slideshow or video starts moving on its own and keeps going for more than five seconds, visitors need a way to pause it. Add a visible pause button, or switch autoplay off.
Many sites have a hero video or a rotating slideshow that starts by itself. For some visitors that is a small annoyance. For others it makes the page unreadable. WCAG 2.2 success criterion 2.2.2 (Pause, Stop, Hide, Level A) says moving content that starts automatically, lasts more than five seconds and sits next to other content needs a way to pause, stop or hide it.
The fix is usually small: a real button that stops the movement, or no autoplay at all.
What the problem looks like
Visitors see one of these:
- A slider that changes slides every few seconds with no pause button.
- A background video that loops behind your headline with no controls.
- A news ticker or testimonial rotator that keeps scrolling.
- A carousel that pauses only when the mouse hovers over it, which does nothing for keyboard or touch users.
Muted autoplay video still counts. Removing the sound does not remove the movement. A video with sound that plays automatically for more than three seconds has a separate rule (1.4.2 Audio Control) and needs a way to stop it or change its volume.
Why it matters
People with ADHD, vestibular disorders, low vision or cognitive disabilities can find moving content distracting or physically uncomfortable. Screen magnifier users may see only part of a slide before it changes. People using a keyboard or switch device may not be able to reach a link before the slide moves on.
It also affects ordinary visitors. A moving banner next to your contact form pulls attention away from it, and a heavy autoplay video slows the page on phones. If you sell in a market with accessibility rules, this is one of the easier failures for an auditor to spot, because it takes seconds to see.
How to check your site for free
- Open your home page and any page with a slider or video. Do not touch the mouse. Count how long the movement continues.
- Look for a pause or stop control. It should be visible without hovering.
- Press
Tabrepeatedly. Can you reach the control with the keyboard, and can you see where focus is? PressEnterorSpaceto check it works. - Turn on a screen reader (VoiceOver on Mac, NVDA on Windows, TalkBack on Android) and listen for what the button is called. "Pause slideshow" is good. "Button" is not.
- Turn on the reduced motion setting in your operating system and reload. Well built sites calm or stop animation when it is on.
- Run a free checker such as WAVE or Lighthouse. They catch some related issues, but they often cannot judge movement, so your own check matters more.
How to fix it in general
Pick the simplest option that suits the content.
- Turn autoplay off. The slides or video start only when the visitor chooses. This is the easiest fix and often the best for conversions.
- Add a pause button. Keep autoplay but give a clear control next to the carousel.
- Add native video controls. For a video, the
controlsattribute gives play, pause and volume with no code. - Respect reduced motion. Start paused when the visitor's system asks for less motion.
A plain HTML video with controls looks like this:
<video src="intro.mp4" muted playsinline controls></video>
For a carousel, the button must be a real <button> element placed before the slides in the page order, with a label that changes between states, for example "Pause slideshow" and "Play slideshow". Do not make it a clickable <div> or an icon with no text. If you use an icon, give it an accessible name (see icon buttons with no label).
Most carousel libraries already expose this. Swiper has autoplay.stop() and autoplay.start(), Slick has slickPause and slickPlay, and Splide has an autoplay option with a built in pause button. Check your version's documentation for the exact setting names.
Two extras help but do not replace a button: pause the slideshow while an element inside it has keyboard focus, and pause it while the mouse is over it.
Common platforms
Menu names change between themes and versions, so use these as a guide to what to look for. Each platform has its own page with more detail, for example WordPress.
| Platform | Where to look |
|---|---|
| WordPress | Your slider plugin or theme's slider settings: look for Autoplay, Auto rotate or Pause on hover |
| Shopify | The slideshow or hero section in the theme editor: look for an auto rotate option or a pause button setting |
| Wix | Slideshow or video strip settings: look for Autoplay and turn it off |
| Squarespace | Section or gallery settings: look for Autoplay or the background video options. Some templates have no pause control, so turn autoplay off |
| Webflow | The Slider element's settings: Auto-play slides. For background video, check the element's autoplay setting |
| Elementor | The carousel or video widget: Autoplay toggle. Background videos on containers may have no pause option |
| HubSpot CMS | Your theme's slider or video module fields. Depends on the theme |
If your theme has no setting for it, your developer can add the button, or you can replace the slider with a static image or a video with controls.
How to confirm the fix worked
Repeat the checks above on a phone and a desktop browser. The pause button should be visible without hovering, reachable with Tab, work with Enter and Space, and have a spoken name. When you press it, all movement should stop and stay stopped. Also confirm the button has a clear focus outline (see missing focus indicator).
How to stop it coming back
- Make "no autoplay unless there is a pause control" a rule for anyone who adds banners or videos.
- Re-test after theme or plugin updates, because they can reset slider settings.
- Ask any developer or agency to confirm the pause control as part of delivery.
- Re-run an accessibility check on a schedule. SiteMonday covers this in week 7 with an accessibility audit against WCAG 2.2. It finds and explains problems, and fixing them is up to you or your developer.
Step by step for your platform
- Autoplay video or carousel with no pause control on WordPress
- Autoplay video or carousel with no pause control on Shopify
- Autoplay video or carousel with no pause control on Wix
- Autoplay video or carousel with no pause control on Squarespace
- Autoplay video or carousel with no pause control on Webflow
- Autoplay video or carousel with no pause control on Elementor
- Autoplay video or carousel with no pause control on HubSpot CMS
Questions
Is a pause button required if the carousel only runs for a few seconds?
WCAG 2.2.2 applies to movement that lasts more than five seconds. If your slideshow stops by itself within five seconds, it does not need a pause control for this rule.
Does a muted background video need a pause button?
Yes, if it plays automatically for more than five seconds alongside other content. Muting removes sound but not movement. Native `controls` or a custom pause button both work.
Is pausing on hover enough?
No. Hover does not help keyboard, touch or screen reader users. It is a useful extra, but you still need a visible button that works with the keyboard.
Can I just remove autoplay instead?
Yes. If the content does not start moving by itself, there is nothing to pause, so this fully solves the problem. Visitors can still start it if they want to.
What should the pause button be called for screen readers?
Use a clear text label such as "Pause slideshow", and switch it to "Play slideshow" when paused. Avoid labels like "Button" or leaving an icon with no name.
Do I need to fix this if my theme's slider has no setting for it?
Yes, but you may need a developer to add the button, or you can swap the slider for a static image or a video with controls. Replacing it is often quicker than customizing it.