duration

[ Function ]

public duration(): number;

Returns the configured duration of the animation in milliseconds. If no duration has been configured, the default is 0.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

number

The configured duration of the animation in milliseconds.

Sample - JavaScript

var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var durationDefault = animation.duration(); // 0
animation.duration(1500);
var duration = animation.duration(); // 1500
duration 1:

Available from 1.8