node_modules

This commit is contained in:
saeid
2019-07-15 13:07:31 +04:30
parent d3735c6d30
commit ce1a3ebf9c
35713 changed files with 3639219 additions and 1 deletions
+53
View File
@@ -0,0 +1,53 @@
// linear
export var linear = function linear(t) {
return t;
};
// accelerating from zero velocity
export var easeInQuad = function easeInQuad(t) {
return t * t;
};
// decelerating to zero velocity
export var easeOutQuad = function easeOutQuad(t) {
return t * (2 - t);
};
// acceleration until halfway, then deceleration
export var easeInOutQuad = function easeInOutQuad(t) {
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
};
// accelerating from zero velocity
export var easeInCubic = function easeInCubic(t) {
return t * t * t;
};
// decelerating to zero velocity
export var easeOutCubic = function easeOutCubic(t) {
return --t * t * t + 1;
};
// acceleration until halfway, then deceleration
export var easeInOutCubic = function easeInOutCubic(t) {
return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
};
// accelerating from zero velocity
export var easeInQuart = function easeInQuart(t) {
return t * t * t * t;
};
// decelerating to zero velocity
export var easeOutQuart = function easeOutQuart(t) {
return 1 - --t * t * t * t;
};
// acceleration until halfway, then deceleration
export var easeInOutQuart = function easeInOutQuart(t) {
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
};
// accelerating from zero velocity
export var easeInQuint = function easeInQuint(t) {
return t * t * t * t * t;
};
// decelerating to zero velocity
export var easeOutQuint = function easeOutQuint(t) {
return 1 + --t * t * t * t * t;
};
// acceleration until halfway, then deceleration
export var easeInOutQuint = function easeInOutQuint(t) {
return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;
};
//# sourceMappingURL=easing-patterns.js.map