firefish/packages/client/src/scripts/reduced-motion.ts
2023-07-20 04:17:05 +09:00

3 lines
116 B
TypeScript

export function reducedMotion(): boolean {
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
}