A WordPress plugin that adds play/pause controls to animated GIFs for better accessibility and user experience.
This plugin automatically detects animated GIFs on your WordPress site and adds play/pause controls, allowing users to:
- Pause distracting animations
- Reduce motion sensitivity issues
- Control when animations play
- Improve focus and readability
This plugin helps websites meet WCAG 2.2.2 Pause, Stop, Hide requirements by providing mechanisms to pause, stop, or hide any moving or auto-updating information.
This plugin specifically addresses:
- WCAG 2.2.2 Pause, Stop, Hide (Level A): For any moving, blinking or scrolling information that (1) starts automatically, (2) lasts more than five seconds, and (3) is presented in parallel with other content, there is a mechanism for the user to pause, stop, or hide it.
- Upload the plugin files to
/wp-content/plugins/accessibility-pause-animated-gifs
- Activate the plugin through the 'Plugins' screen in WordPress
- Configure the plugin settings under 'Settings > Pause Animated GIFs'
- Automatic detection of animated GIFs
- Individual play/pause controls for each GIF
- Optional global pause button for all animations
- Customizable button styling
- WCAG accessibility compliance
- Performance optimized
- Container: Specify where to add pause buttons (default: 'body')
- Exclusions: Exclude specific GIFs or regions using CSS selectors
- Inherit Classes: Copy classes from original GIF to canvas element
- Initially Paused: Start all GIFs in paused state
- Shared Pause Button: Use one button to control all GIFs
- Show Buttons: Toggle visibility of control buttons
- Target: Target specific images using CSS selectors
- Background color
- Hover state
- Border style
- Border radius
- Icon color
- Focus indicators
- Icon size
Customize button text and labels for:
- Pause button
- Play button
- Pause all button
- Play all button
- Node.js
- WordPress 5.0+
- PHP 7.4+
npm install
npm run build
For support, please open an issue on GitHub.
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
Developed by Equalize Digital