UNPKG

@magica11y/prefers-reduced-motion

Version:

Detects user’s preferences for reduced motion using the 'prefers-reduce-motion' CSS3 level 5 media query.

14 lines (10 loc) 262 B
// @flow const motionPreferences: {| NO_PREFERENCE: string, REDUCE: string, |} = Object.freeze({ NO_PREFERENCE: 'no-preference', REDUCE: 'reduce', }); export type MotionPreference = $Values<typeof motionPreferences>; export default motionPreferences;