Ideally, this polyfill would be bypassed if the user has set they prefer reduced motion on their system or browser accessibility settings. This can be checked fairly easily with window.matchMedia('(prefers-reduced-motion: reduce)'), possibly in the shouldBailOut function.
Ideally, this polyfill would be bypassed if the user has set they prefer reduced motion on their system or browser accessibility settings. This can be checked fairly easily with
window.matchMedia('(prefers-reduced-motion: reduce)'), possibly in theshouldBailOutfunction.