Easing 类型
模块: cc
缓动函数类,为 Tween 提供缓动效果函数。
函数效果演示: https://easings.net/
索引
方法
quadIn平方曲线缓入函数。quadOut平方曲线缓出函数。quadInOut平方曲线缓入缓出函数。cubicIn立方曲线缓入函数。cubicOut立方曲线缓出函数。cubicInOut立方曲线缓入缓出函数。quartIn四次方曲线缓入函数。quartOut四次方曲线缓出函数。quartInOut四次方曲线缓入缓出函数。quintIn五次方曲线缓入函数。quintOut五次方曲线缓出函数。quintInOut五次方曲线缓入缓出函数。sineIn正弦曲线缓入函数。sineOut正弦曲线缓出函数。sineInOut正弦曲线缓入缓出函数。expoIn指数曲线缓入函数。expoOut指数曲线缓出函数。expoInOut指数曲线缓入和缓出函数。circIn循环公式缓入函数。circOut循环公式缓出函数。circInOut指数曲线缓入缓出函数。elasticIn弹簧回震效果的缓入函数。elasticOut弹簧回震效果的缓出函数。elasticInOut弹簧回震效果的缓入缓出函数。backIn回退效果的缓入函数。backOut回退效果的缓出函数。backInOut回退效果的缓入缓出函数。bounceIn弹跳效果的缓入函数。bounceOut弹跳效果的缓出函数。bounceInOut弹跳效果的缓入缓出函数。smooth平滑效果函数。fade渐褪效果函数。
Details
方法
quadIn
平方曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:52 |
参数列表
tNumber The current time as a percentage of the total time.
quadOut
平方曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:60 |
参数列表
tNumber The current time as a percentage of the total time.
quadInOut
平方曲线缓入缓出函数。运动由慢到快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:68 |
参数列表
tNumber The current time as a percentage of the total time.
cubicIn
立方曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:87 |
参数列表
tNumber The current time as a percentage of the total time.
cubicOut
立方曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:95 |
参数列表
tNumber The current time as a percentage of the total time.
cubicInOut
立方曲线缓入缓出函数。运动由慢到快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:103 |
参数列表
tNumber The current time as a percentage of the total time.
quartIn
四次方曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:122 |
参数列表
tNumber The current time as a percentage of the total time.
quartOut
四次方曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:130 |
参数列表
tNumber The current time as a percentage of the total time.
quartInOut
四次方曲线缓入缓出函数。运动由慢到快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:138 |
参数列表
tNumber The current time as a percentage of the total time.
quintIn
五次方曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:157 |
参数列表
tNumber The current time as a percentage of the total time.
quintOut
五次方曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:165 |
参数列表
tNumber The current time as a percentage of the total time.
quintInOut
五次方曲线缓入缓出函数。运动由慢到快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:173 |
参数列表
tNumber The current time as a percentage of the total time.
sineIn
正弦曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:192 |
参数列表
tNumber The current time as a percentage of the total time.
sineOut
正弦曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:200 |
参数列表
tNumber The current time as a percentage of the total time.
sineInOut
正弦曲线缓入缓出函数。运动由慢到快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:208 |
参数列表
tNumber The current time as a percentage of the total time.
expoIn
指数曲线缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:222 |
参数列表
tNumber The current time as a percentage of the total time.
expoOut
指数曲线缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:230 |
参数列表
tNumber The current time as a percentage of the total time.
expoInOut
指数曲线缓入和缓出函数。运动由慢到很快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:238 |
参数列表
tNumber The current time as a percentage of the total time, then back to slow.
circIn
循环公式缓入函数。运动由慢到快。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:263 |
参数列表
tNumber The current time as a percentage of the total time.
circOut
循环公式缓出函数。运动由快到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:271 |
参数列表
tNumber The current time as a percentage of the total time.
circInOut
指数曲线缓入缓出函数。运动由慢到很快再到慢。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:279 |
参数列表
tNumber The current time as a percentage of the total time, then back to slow.
elasticIn
弹簧回震效果的缓入函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:299 |
参数列表
tNumber The current time as a percentage of the total time.
elasticOut
弹簧回震效果的缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:323 |
参数列表
tNumber The current time as a percentage of the total time.
elasticInOut
弹簧回震效果的缓入缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:347 |
参数列表
tNumber The current time as a percentage of the total time.
backIn
回退效果的缓入函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:381 |
参数列表
tNumber The current time as a percentage of the total time.
backOut
回退效果的缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:392 |
参数列表
tNumber The current time as a percentage of the total time.
backInOut
回退效果的缓入缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:403 |
参数列表
tNumber The current time as a percentage of the total time.
bounceIn
弹跳效果的缓入函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:423 |
参数列表
tNumber The current time as a percentage of the total time.
bounceOut
弹跳效果的缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:433 |
参数列表
tNumber The current time as a percentage of the total time.
bounceInOut
弹跳效果的缓入缓出函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:454 |
参数列表
tNumber The current time as a percentage of the total time.
smooth
平滑效果函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:468 |
参数列表
tNumber The current time as a percentage of the total time.
fade
渐褪效果函数。
| meta | description |
|---|---|
| 返回 | Number |
| 定义于 | cocos2d/animation/easing.js:486 |
参数列表
tNumber The current time as a percentage of the total time.