hippofish/packages/client/src/scripts/reduced-motion.ts
ThatOneCalculator 6b00abf05c
refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

3 lines
116 B
TypeScript

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