Class cc.EaseInOut
- Defined in: CCActionEase.js
- Extends cc.EaseRateAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.EaseInOut action with a rate.
|
Method Summary
Class Detail
cc.EaseInOut()
cc.EaseInOut action with a rate.
Slow to fast then to slow.
Slow to fast then to slow.
//The old usage cc.EaseInOut.create(action, 3); //The new usage action.easing(cc.easeInOut(3.0));
- since v3.0 please use action.easing(cc.easeInOut(3.0))
Method Detail
-
{cc.EaseInOut} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.EaseInOut}
-
Creates the action with the inner action and the rate parameter. Slow to fast then to slow.
//The old usage cc.EaseInOut.create(action, 3); //The new usage action.easing(cc.easeInOut(3.0));
- Parameters:
- {cc.ActionInterval} action
- {Number} rate
- Deprecated:
-
since v3.0
Please use action.easing(cc.easeInOut(3.0)) - Returns:
- {cc.EaseInOut}
-
{cc.EaseInOut} reverse()Create a cc.EaseInOut action. Opposite with the original motion trajectory.
- Returns:
- {cc.EaseInOut}
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt