mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 19:13:51 +00:00
Mobile optimizations
This commit is contained in:
4
src/lib/reduced-motion.ts
Normal file
4
src/lib/reduced-motion.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function prefersReducedMotion(): boolean {
|
||||
if (typeof window === "undefined") return false;
|
||||
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||
}
|
||||
Reference in New Issue
Block a user