@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
21 lines (17 loc) • 458 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
import {
windowMatchMedia
} from "./chunk-BPJKMILL.mjs";
import "./chunk-NYLAFCGV.mjs";
// src/isPrefersReducedMotion.ts
function isPrefersReducedMotion() {
const mediaQuery = windowMatchMedia()?.("(prefers-reduced-motion: reduce)");
return typeof window !== "undefined" ? mediaQuery?.matches : false;
}
export {
isPrefersReducedMotion
};