Class cc.EaseElasticInOut
- Defined in: CCActionEase.js
- Extends cc.EaseElastic
Constructor Attributes | Constructor Name and Description |
---|---|
Ease Elastic InOut action.
|
Method Summary
Class Detail
cc.EaseElasticInOut()
Ease Elastic InOut action.
Reference easeInOutElastic:
http://www.zhihu.com/question/21981571/answer/19925418
Reference easeInOutElastic:
http://www.zhihu.com/question/21981571/answer/19925418
//The old usage cc.EaseElasticInOut.create(action, period); //The new usage action.easing(cc.easeElasticInOut(period));
- since v3.0 please use action.easing(cc.easeElasticInOut())
Method Detail
-
{cc.EaseElasticInOut} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.EaseElasticInOut}
-
Creates the action with the inner action and the period in radians (default is 0.3).
Reference easeInOutElastic:
http://www.zhihu.com/question/21981571/answer/19925418//The old usage cc.EaseElasticInOut.create(action, period); //The new usage action.easing(cc.easeElasticInOut(period));
- Parameters:
- {cc.ActionInterval} action
- {Number} period Optional, Default: 0.3
- Deprecated:
-
since v3.0
Please use action.easing(cc.easeElasticInOut(period)) - Returns:
- {cc.EaseElasticInOut}
-
{cc.EaseElasticInOut} reverse()Create a action. Opposite with the original motion trajectory.
- Returns:
- {cc.EaseElasticInOut}
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt