Easing docs
This commit is contained in:
@@ -4,6 +4,7 @@ goog.require('goog.fx.easing');
|
||||
|
||||
|
||||
/**
|
||||
* Start slow and speed up.
|
||||
* @function
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
@@ -13,6 +14,7 @@ ol.easing.easeIn = goog.fx.easing.easeIn;
|
||||
|
||||
|
||||
/**
|
||||
* Start fast and slow down.
|
||||
* @function
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
@@ -22,6 +24,7 @@ ol.easing.easeOut = goog.fx.easing.easeOut;
|
||||
|
||||
|
||||
/**
|
||||
* Start slow, speed up, and then slow down again.
|
||||
* @function
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
@@ -31,6 +34,7 @@ ol.easing.inAndOut = goog.fx.easing.inAndOut;
|
||||
|
||||
|
||||
/**
|
||||
* Maintain a constant speed over time.
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
* @api
|
||||
@@ -41,6 +45,9 @@ ol.easing.linear = function(t) {
|
||||
|
||||
|
||||
/**
|
||||
* Start slow, speed up, and at the very end slow down again. This has the
|
||||
* same general behavior as {@link ol.easing.inAndOut}, but the final slowdown
|
||||
* is delayed.
|
||||
* @param {number} t Input between 0 and 1.
|
||||
* @return {number} Output between 0 and 1.
|
||||
* @api
|
||||
|
||||
Reference in New Issue
Block a user