iceshrimp/packages/client/src/scripts/reduced-motion.ts
2022-11-29 18:40:12 -08:00

4 lines
116 B
TypeScript

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