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

Id

The Id property determines a repository object identifier.

Methods inherited from the class Object

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getId The getId method returns repository object identifier.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setId The setId method determines a repository object identifier.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP.Ui