reducedMotionfunction
Does the reader ask for less motion?
Import it
import { reducedMotion } from "@johnmorrisdotca/koyomi-calendars/animate";
Definition
function reducedMotion(): boolean
Returns
boolean
true when the browser reports prefers-reduced-motion: reduce; false otherwise, and outside a browser.
Examples
import { reducedMotion } from "@johnmorrisdotca/koyomi-calendars/animate";
console.log(reducedMotion());falseWhat it prints (run when this page was built)