if (navigator.preferences.reducedMotion.value === "reduce") {
// The user prefers reduced motion.
} else {
// The user has stated no preference regarding motion.
}PreferenceManager: reducedMotion property / notebook
PreferenceManager: reducedMotion property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.