EasingFunction()
简化了TweenCollection的使用功能。
这些函数来自Tween.js和Robert Penner。
请参考:Tween.js graphs for each function.
成员变量
Back in.
Back in then out.
Back out.
Bounce in.
Bounce in then out.
Bounce out.
Circular in.
Circular in then out.
Circular out.
Cubic in.
Cubic in then out.
Cubic out.
Elastic in.
Elastic in then out.
Elastic out.
Exponential in.
Exponential in then out.
Exponential out.
Linear easing.
Quadratic in.
Quadratic in then out.
Quadratic out.
Quartic in.
Quartic in then out.
Quartic out.
Quintic in.
Quintic in then out.
Quintic out.
Sinusoidal in.
Sinusoidal in then out.
Sinusoidal out.
类型定义
实现自定义简化函数的函数接口。
Name | Type | Description |
---|---|---|
time |
Number |
时间范围[0,1] 。 |
返回值:
函数在给定时间的值。
示例:
function quadraticIn(time) {
return time * time;
}
function quadraticOut(time) {
return time * (2.0 - time);
}