Easing Class

Module: cc

This class provide easing methods for Tween class.
Demonstratio: https://easings.net/

Index

Methods
  • quadIn Easing in with quadratic formula.
  • quadOut Easing out with quadratic formula.
  • quadInOut Easing in and out with quadratic formula.
  • cubicIn Easing in with cubic formula.
  • cubicOut Easing out with cubic formula.
  • cubicInOut Easing in and out with cubic formula.
  • quartIn Easing in with quartic formula.
  • quartOut Easing out with quartic formula.
  • quartInOut Easing in and out with quartic formula.
  • quintIn Easing in with quintic formula.
  • quintOut Easing out with quintic formula.
  • quintInOut Easing in and out with quintic formula.
  • sineIn Easing in and out with sine formula.
  • sineOut Easing in and out with sine formula.
  • sineInOut Easing in and out with sine formula.
  • expoIn Easing in and out with exponential formula.
  • expoOut Easing in and out with exponential formula.
  • expoInOut Easing in and out with exponential formula.
  • circIn Easing in and out with circular formula.
  • circOut Easing in and out with circular formula.
  • circInOut Easing in and out with circular formula.
  • elasticIn Easing in action with a spring oscillating effect.
  • elasticOut Easing out action with a spring oscillating effect.
  • elasticInOut Easing in and out action with a spring oscillating effect.
  • backIn Easing in action with "back up" behavior.
  • backOut Easing out action with "back up" behavior.
  • backInOut Easing in and out action with "back up" behavior.
  • bounceIn Easing in action with bouncing effect.
  • bounceOut Easing out action with bouncing effect.
  • bounceInOut Easing in and out action with bouncing effect.
  • smooth Target will run action with smooth effect.
  • fade Target will run action with fade effect.

Details

Methods

quadIn

Easing in with quadratic formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:52
Parameters
  • t Number The current time as a percentage of the total time.
quadOut

Easing out with quadratic formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:60
Parameters
  • t Number The current time as a percentage of the total time.
quadInOut

Easing in and out with quadratic formula. From slow to fast, then back to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:68
Parameters
  • t Number The current time as a percentage of the total time.
cubicIn

Easing in with cubic formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:87
Parameters
  • t Number The current time as a percentage of the total time.
cubicOut

Easing out with cubic formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:95
Parameters
  • t Number The current time as a percentage of the total time.
cubicInOut

Easing in and out with cubic formula. From slow to fast, then back to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:103
Parameters
  • t Number The current time as a percentage of the total time.
quartIn

Easing in with quartic formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:122
Parameters
  • t Number The current time as a percentage of the total time.
quartOut

Easing out with quartic formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:130
Parameters
  • t Number The current time as a percentage of the total time.
quartInOut

Easing in and out with quartic formula. From slow to fast, then back to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:138
Parameters
  • t Number The current time as a percentage of the total time.
quintIn

Easing in with quintic formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:157
Parameters
  • t Number The current time as a percentage of the total time.
quintOut

Easing out with quintic formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:165
Parameters
  • t Number The current time as a percentage of the total time.
quintInOut

Easing in and out with quintic formula. From slow to fast, then back to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:173
Parameters
  • t Number The current time as a percentage of the total time.
sineIn

Easing in and out with sine formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:192
Parameters
  • t Number The current time as a percentage of the total time.
sineOut

Easing in and out with sine formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:200
Parameters
  • t Number The current time as a percentage of the total time.
sineInOut

Easing in and out with sine formula. From slow to fast, then back to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:208
Parameters
  • t Number The current time as a percentage of the total time.
expoIn

Easing in and out with exponential formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:222
Parameters
  • t Number The current time as a percentage of the total time.
expoOut

Easing in and out with exponential formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:230
Parameters
  • t Number The current time as a percentage of the total time.
expoInOut

Easing in and out with exponential formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:238
Parameters
  • t Number The current time as a percentage of the total time, then back to slow.
circIn

Easing in and out with circular formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:263
Parameters
  • t Number The current time as a percentage of the total time.
circOut

Easing in and out with circular formula. From fast to slow.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:271
Parameters
  • t Number The current time as a percentage of the total time.
circInOut

Easing in and out with circular formula. From slow to fast.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:279
Parameters
  • t Number The current time as a percentage of the total time, then back to slow.
elasticIn

Easing in action with a spring oscillating effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:299
Parameters
  • t Number The current time as a percentage of the total time.
elasticOut

Easing out action with a spring oscillating effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:323
Parameters
  • t Number The current time as a percentage of the total time.
elasticInOut

Easing in and out action with a spring oscillating effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:347
Parameters
  • t Number The current time as a percentage of the total time.
backIn

Easing in action with "back up" behavior.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:381
Parameters
  • t Number The current time as a percentage of the total time.
backOut

Easing out action with "back up" behavior.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:392
Parameters
  • t Number The current time as a percentage of the total time.
backInOut

Easing in and out action with "back up" behavior.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:403
Parameters
  • t Number The current time as a percentage of the total time.
bounceIn

Easing in action with bouncing effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:423
Parameters
  • t Number The current time as a percentage of the total time.
bounceOut

Easing out action with bouncing effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:433
Parameters
  • t Number The current time as a percentage of the total time.
bounceInOut

Easing in and out action with bouncing effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:454
Parameters
  • t Number The current time as a percentage of the total time.
smooth

Target will run action with smooth effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:468
Parameters
  • t Number The current time as a percentage of the total time.
fade

Target will run action with fade effect.

meta description
Returns Number
Defined in cocos2d/animation/easing.js:486
Parameters
  • t Number The current time as a percentage of the total time.

results matching ""

    No results matching ""