[kwlug-disc] question for the website programmers
Ronald Barnes
ron at ronaldbarnes.ca
Wed Sep 11 14:12:15 EDT 2024
Colin_ via kwlug-disc wrote on 2024-09-11 08:26:
> Ultimately constant animations you can't stop are web content
> accessibility violations.
True.
It might be an idea to have a style sheet check like:
@media(prefers-reduced-motion)
{
:root
{
--trans-effect: /* nothing happens */;
}
}
maybe combined with a script like:
let reducedMotion = window.matchMedia("(prefers-reduced-motion)").matches;
which can be used to determine if user explicitly requests no animations.
rb
More information about the kwlug-disc
mailing list