UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

20 lines (19 loc) 720 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reduceMotionAsPerUserPreference = void 0; /** * Use for any CSS based motion (animation or transition). * Always put at the end of your declaration for correct use of the cascade. * Reduced motion preference is generally set through OS preferences/settings. * * @deprecated This is not fully compatible with Compiled CSS and will be removed in the future. * You should hardcode the `prefers-reduced-motion` media query in your file instead. */ var reduceMotionAsPerUserPreference = exports.reduceMotionAsPerUserPreference = { '@media (prefers-reduced-motion: reduce)': { animation: 'none', transition: 'none' } };