mirror of https://github.com/sveltejs/svelte
Svelte 5 transitions are driven by the Web Animations API, so a global `@media (prefers-reduced-motion: reduce)` rule that zeroes transition-duration and animation-duration has no effect on them -- a reader who reaches for the usual CSS reset gets no warning that it does nothing here. `prefersReducedMotion` already covers this and is documented on the svelte/motion page, but nothing on the transition page points to it. This adds a short Accessibility section that does, reusing the example from the svelte/motion docs so the two pages stay consistent.pull/18597/head
parent
44a7813730
commit
9983e8e163
Loading…
Reference in new issue