g3-toolkit API Reference
    Preparing search index...

    Function prefersReducedMotion

    • Whether the user has requested reduced motion (A2, design-system roadmap). The CSS layer already zeroes the duration tokens under prefers-reduced-motion; this helper exists for JS-driven animation that never touches CSS (Cytoscape layout transitions, ECharts animation config), which must consult it at their defaults. SSR-safe: returns false when no matchMedia is available, so server renders assume motion and the client corrects on hydration.

      Returns boolean