Make your CSS animations safe for reduced motion
Paste your CSS. Get a prefers-reduced-motion block that calms every animation, transition and parallax in it, ready to paste.
- Free, no sign-up
- Nothing uploaded
- CSS to paste
No CSS handy? Try one:
Have a stylesheet file? or drop it here.
How it works
- Paste your CSS. A stylesheet, a part of one, or a page's HTML (its <style> blocks are read). CSS nesting, @media, @supports, @container and @layer are understood.
- Every motion is measured. Animations from their @keyframes (how far they slide, how much they turn or zoom, whether they blink), transitions from the hover and state rules that move them, plus smooth scrolling and fixed backgrounds.
- Each one is rated. Opacity and colour changes, small changes and slow short movement are safe and kept. Large, fast, zooming, spinning and background movement is reduced. Endless movement and flashing is avoided.
- Copy the block. Movement becomes a short fade, loading spinners a slow opacity pulse, and the rest stops at once. Change any item to Keep, Fade instead or Turn off and the CSS updates.
Questions
- What is prefers-reduced-motion?
- A setting people turn on in their device (Reduce motion on iPhone and Mac, Remove animations on Windows and Android) because motion makes them dizzy, sick or distracted. CSS reads it with @media (prefers-reduced-motion: reduce); rules inside it apply only to them.
- Why not just turn every animation off?
- Some motion carries meaning: a spinner says the page is working, a fade shows something arrived. The skill this page follows keeps that meaning without the movement, so a spinner pulses and an entrance fades. The catch-all is there too if you want it.
- Why 0.01ms instead of animation: none?
- Scripts often wait for animationend or transitionend before removing a toast or a menu. With none those events never fire and the element can get stuck. A 0.01ms animation jumps to its end state and still fires them.
- Which animations count as safe?
- Opacity fades, colour changes, changes under about 5% and a few pixels, and slow (500 ms or longer), short movement. Parallax, moving backgrounds, zoom, spinning, large or fast movement are reduced; anything that moves forever or flashes is avoided.
- What do the WCAG warnings mean?
- 2.3.1: nothing may flash more than 3 times a second. 2.2.2: anything that moves for more than 5 seconds needs a way to pause it. Both apply to everyone, not only to people who turn on reduce motion. 2.3.3: motion started by an interaction can be turned off, which the block does.
- Is my CSS uploaded?
- No. It is read and the block is written inside your browser tab. Only the optional AI step sends the selectors, @keyframes names and what the page measured, and only when you press its button. Once you have signed in through it, your checks are also kept in your account's history.