Class cc.FadeIn

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.FadeIn(duration)
Fades In an object that implements the cc.RGBAProtocol protocol.

Method Summary

Class Detail

cc.FadeIn(duration)
Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.
The "reverse" of this action is FadeOut
Parameters:
{Number} duration
duration in seconds

Field Detail

<static> {cc.FadeIn} cc.FadeIn.create
Please use cc.fadeIn instead. Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.
Deprecated:
since v3.0 please use cc.fadeIn() instead.

Method Detail

  • {cc.FadeIn} clone()
    returns a new clone of the action
    Returns:
    {cc.FadeIn}
  • ctor(duration)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} duration
    duration in seconds
  • {cc.FadeOut} reverse()
    Returns a reversed action.
    Returns:
    {cc.FadeOut}
  • startWithTarget(target)
    Start the action with target.
    Parameters:
    {cc.Node} target