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

OpacityAction

MikhailTymchukDX edited this page Apr 12, 2017 · 2 revisions

OpacityAction (inherits Action)

OpacityAction allows you to set the opacity of the target.

Client properties

Name Description
opacity The opacity value to set to the target element.

Client methods

Name Description
constructor(target, duration, fps, opacity)
doAction() Sets the target element's opacity.

Client properties

opacity

The opacity value to set to the target element.

Getter name: get_opacity()
Setter name: set_opacity(value)

Client methods

constructor(target, duration, fps, opacity)

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.
  • opacity

    • Type: Number
    • Description: Opacity to set the target.

doAction()

Sets the target element's opacity.

Clone this wiki locally