state

[ Function ]

public state(): TcHmi.Animation.Status;

Returns the current state of the animation.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

TcHmi.Animation.Status

The current status of the animation.

Sample - JavaScript

var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var state1 = animation.state(); // TcHmi.Animation.Status.CONFIGURE
animation.addKeyframe('top', '20px', 0).addKeyframe('top', '50px', 1);
animation.run();
var state2 = animation.state(); // TcHmi.Animation.Status.INITIALIZED
state 1:

Available from 1.8