Animation

Namespace: PP.Ui;

Inheritance Hierarchy

Object

Animation

Description

The Animation class implements animation of objects' properties and styles.

Syntax

PP.initClass(PP.Ui.Animation, PP.Object, "PP.Ui.Animation");

Constructor

  Constructor name Brief description
sub_image.gif Animation The Animation constructor creates an instance of the Animation class.

Properties

  Property name Brief description
property_image.gif Context The Context property sets and returns the object, which property will change during animation.
property_image.gif Duration The Duration property sets and returns animation duration in milliseconds.
property_image.gif End The End property sets and returns index of the last animation step.
property_image.gif PropertyName The PropertyName property sets and returns name of the property to be animated.
property_image.gif Start The Start property sets and returns index of the first animation step.

Methods

  Method name Brief description
sub_image.gif animate The animate method starts playing animation with the current parameters.
sub_image.gif animateCSS The animateCSS method plays animation of object CSS property.
sub_image.gif animateDomNodeProp The animateDomNodeProp method plays DOM element property animation with the current parameters.
sub_image.gif animateProp The animateProp method plays object property animation.
sub_image.gif animateSVGAttr The animateSVGAttr method plays animation of SVG element attribute with the current parameters.
sub_image.gif getNow The getNow method returns current animation step value.
sub_image.gif getStartTime The getStartTime method returns time of animation start.
sub_image.gif isExecute The isExecute method determines whether animation is currently playing.
sub_image.gif run The run method starts animation.
sub_image.gif step The step method returns animation step value after the specified timeout.
sub_image.gif stop The stop method stops animation.
sub_image.gif stopToEnd The stopToEnd method stops animation and takes it to the end.
sub_image.gif stopToStart The stopToStart method stops animation and returns it to the first step.

Properties inherited from the class Object

  Property name Brief description
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets the component parameters.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

Seebsp;also:

PP.Ui