3 lines
116 B
TypeScript
3 lines
116 B
TypeScript
export function reducedMotion(): boolean {
|
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
}
|