EasingFunction

用于TweenCollection的缓动函数。这些功能来自 Tween.js 和罗伯特·彭纳(Robert Penner)。看到 每个函数的Tween.js图

Members

static constant LSGlobe.EasingFunction.BACK_IN : EasingFunction.Callback

早在。

static constant LSGlobe.EasingFunction.BACK_IN_OUT : EasingFunction.Callback

进进出出。

static constant LSGlobe.EasingFunction.BACK_OUT : EasingFunction.Callback

退出。

static constant LSGlobe.EasingFunction.BOUNCE_IN : EasingFunction.Callback

弹跳。

static constant LSGlobe.EasingFunction.BOUNCE_IN_OUT : EasingFunction.Callback

弹入然后弹出。

static constant LSGlobe.EasingFunction.BOUNCE_OUT : EasingFunction.Callback

弹跳出来。

static constant LSGlobe.EasingFunction.CIRCULAR_IN : EasingFunction.Callback

循环输入。

static constant LSGlobe.EasingFunction.CIRCULAR_IN_OUT : EasingFunction.Callback

循环进然后出。

static constant LSGlobe.EasingFunction.CIRCULAR_OUT : EasingFunction.Callback

通报。

static constant LSGlobe.EasingFunction.CUBIC_IN : EasingFunction.Callback

立方英寸。

static constant LSGlobe.EasingFunction.CUBIC_IN_OUT : EasingFunction.Callback

立方进然后出。

static constant LSGlobe.EasingFunction.CUBIC_OUT : EasingFunction.Callback

立方出来。

static constant LSGlobe.EasingFunction.ELASTIC_IN : EasingFunction.Callback

松紧带

static constant LSGlobe.EasingFunction.ELASTIC_IN_OUT : EasingFunction.Callback

弹性进出。

static constant LSGlobe.EasingFunction.ELASTIC_OUT : EasingFunction.Callback

弹开。

static constant LSGlobe.EasingFunction.EXPONENTIAL_IN : EasingFunction.Callback

指数输入

static constant LSGlobe.EasingFunction.EXPONENTIAL_IN_OUT : EasingFunction.Callback

指数进然后出。

static constant LSGlobe.EasingFunction.EXPONENTIAL_OUT : EasingFunction.Callback

指数出。

static constant LSGlobe.EasingFunction.LINEAR_NONE : EasingFunction.Callback

线性宽松。

static constant LSGlobe.EasingFunction.QUADRACTIC_IN : EasingFunction.Callback

二次方

static constant LSGlobe.EasingFunction.QUADRACTIC_IN_OUT : EasingFunction.Callback

二次进然后出。

static constant LSGlobe.EasingFunction.QUADRACTIC_OUT : EasingFunction.Callback

二次淘汰。

static constant LSGlobe.EasingFunction.QUARTIC_IN : EasingFunction.Callback

四进位

static constant LSGlobe.EasingFunction.QUARTIC_IN_OUT : EasingFunction.Callback

四进四出。

static constant LSGlobe.EasingFunction.QUARTIC_OUT : EasingFunction.Callback

四出。

static constant LSGlobe.EasingFunction.QUINTIC_IN : EasingFunction.Callback

五重奏

static constant LSGlobe.EasingFunction.QUINTIC_IN_OUT : EasingFunction.Callback

五次进入然后退出。

static constant LSGlobe.EasingFunction.QUINTIC_OUT : EasingFunction.Callback

五重奏了。

static constant LSGlobe.EasingFunction.SINUSOIDAL_IN : EasingFunction.Callback

正弦输入

static constant LSGlobe.EasingFunction.SINUSOIDAL_IN_OUT : EasingFunction.Callback

正弦输入然后输出。

static constant LSGlobe.EasingFunction.SINUSOIDAL_OUT : EasingFunction.Callback

正弦输出。

Type Definitions

LSGlobe.EasingFunction.Callback (time) Number

用于实现自定义缓动功能的功能接口。
Name Type Description
time Number 时间范围为 [0,1]
Returns:
给定时间的函数值。
Examples:
function quadraticIn(time) {
    return time * time;
}
function quadraticOut(time) {
    return time * (2.0 - time);
}