Skeleton loader > Respect prefers-reduced-motion
Problem
Animation doesn't respect prefers-reduced-motion
.
Solution
Don't animate the skeleton if prefers-reduced-motion
is set to true
. This can be done with the @media (prefers-reduced-motion) {}
media query and either providing an animation like a slow fade in and out of the shapes, or by removing the animation altogether.
Edited by Jeremy Elder