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

ResizeAnimation

MikhailTymchukDX edited this page Aug 25, 2016 · 2 revisions

ResizeAnimation (inherits ParallelAnimation)

The ResizeAnimation changes the size of the target from its current value to the specified width and height.

Client properties

Name Description
height New height of the element.
unit Length unit for the size of the target. The default value is 'px'.
width New width of the element.

Client methods

Name Description
.ctor(target, duration, fps, width, height, unit)
onStart() The onStart method is called just before the animation is played each time.

Client properties

width

New width of the element.

Getter name: get_width()
Setter name: set_width(value)

height

New height of the element.

Getter name: get_height()
Setter name: set_height(value)

unit

Length unit for the size of the target. The default value is 'px'.

Getter name: get_unit()
Setter name: set_unit(value)

Client methods

.ctor(target, duration, fps, width, height, unit)

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

    • Type: Number
    • Description: New width of the target.
  • height

    • Type: Number
    • Description: New height of the target.
  • unit

    • Type: String
    • Description: Length unit for the size of the target. The default value is 'px'.

onStart()

The onStart method is called just before the animation is played each time.

Clone this wiki locally