React rendering

View transition motion preference

Do not request animation when reduced motion is preferred; preserve content.

Formal Syntax & Structure

react syntaxreact
window.matchMedia("(prefers-reduced-motion: reduce)").matches

Working Example

Example Snippetreact
window.matchMedia("(prefers-reduced-motion: reduce)").matches
React Reference