Skip to content
EliteChart

prefersReducedMotion

Documentation


Documentation / @elitechart/core / prefersReducedMotion

code
function prefersReducedMotion(): boolean;

Defined in: util/motion.ts:18

True when the user has set prefers-reduced-motion: reduce. Use to gate momentum scrolling and decorative animation.

Returns

boolean

Example

code
import { prefersReducedMotion } from '@elitechart/core';
if (!prefersReducedMotion()) startMomentumScroll();