@atlaskit/motion
Version:
A set of utilities to apply motion in your application.
21 lines (20 loc) • 531 B
JavaScript
/**
* Think of this as the motion equivalent of the @atlaskit/theme `grid()`.
*/
export const durationStep = 25;
export const durations = {
none: 0,
small: 100,
medium: 350,
large: 700
};
/**
* Used to multiply the initial duration for exiting motions.
*/
const EXITING_MOTION_MULTIPLIER = 0.5;
export const exitingDurations = {
none: durations.none,
small: durations.small * EXITING_MOTION_MULTIPLIER,
medium: durations.medium * EXITING_MOTION_MULTIPLIER,
large: durations.large * EXITING_MOTION_MULTIPLIER
};