rudeshark.net/packages/client/src/scripts/reduced-motion.ts

4 lines
116 B
TypeScript
Raw Normal View History

2022-11-30 03:40:12 +01:00
export function reducedMotion(): boolean {
2023-01-13 05:40:33 +01:00
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2022-11-30 03:40:12 +01:00
}