Note: All links on this page open in a new tab.

WP Accessibility Day Presentation 2023: Creating an Animation Pause Button in WordPress

Sources & Links from the presentation

Amendments to Presentation

As an example of “always iterate,” I’ve thought of an improvement on the session. Instead of setting the local storage variable based on the user’s system settings, it would probably be better to only set that value when the user explicitly interacts with the toggle button. This way, if they change their system settings, the page will change with them.

I’ve updated the GitHub repo to reflect this.

The other option is to mimic what web apps do and have a third option of “use system settings” but for a regular website, that’s probably overkill.

Session Description

Micro-interactions and animations can be a really fun way to add a little bit of flair and personality to a website. There are some basic guidelines to follow in general when it comes to animations, but what about when it comes to respecting the preferences of the people that visit? From concept to execution, this session will go over the reasons why animation pause buttons exist, how one is created, user experience and design considerations, and look at some other examples of how this can be achieved.