Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

HideAction

MikhailTymchukDX edited this page Apr 12, 2017 · 2 revisions

HideAction (inherits Action)

The HideAction simply hides the target from view (by setting its style's display attribute to 'none')

Client properties

Name Description
visible True to show the target, false to hide it. The default value is false.

Client methods

Name Description
constructor(target, duration, fps, visible)
doAction() Hides the target element.

Client properties

visible

True to show the target, false to hide it. The default value is false.

Getter name: get_visible()
Setter name: set_visible(value)

Client methods

constructor(target, duration, fps, visible)

Params:

  • target

    • Type: Object
    • Description: Target of the animation.
  • duration

    • Type: Number
    • Description: Length of the animation in seconds. The default is 1.
  • fps

    • Type: Number
    • Description: Number of steps per second. The default is 25.
  • visible

    • Type: Boolean
    • Description: true to show the target, false to hide it. The default value is false.

doAction()

Hides the target element.

Clone this wiki locally