@atlaskit/motion
Version:
A set of utilities to apply motion in your application.
27 lines (25 loc) • 730 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.exitingDurations = exports.durations = exports.durationStep = void 0;
/**
* Think of this as the motion equivalent of the @atlaskit/theme `grid()`.
*/
var durationStep = exports.durationStep = 25;
var durations = exports.durations = {
none: 0,
small: 100,
medium: 350,
large: 700
};
/**
* Used to multiply the initial duration for exiting motions.
*/
var EXITING_MOTION_MULTIPLIER = 0.5;
var exitingDurations = exports.exitingDurations = {
none: durations.none,
small: durations.small * EXITING_MOTION_MULTIPLIER,
medium: durations.medium * EXITING_MOTION_MULTIPLIER,
large: durations.large * EXITING_MOTION_MULTIPLIER
};