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 |
---|---|
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
Available from 1.8 |