duration
[ Function ]
public duration(valueNew: number | null): this;
Sets the duration in milliseconds that this animation should run.
Parameter
Name | Type | Description |
---|---|---|
valueNew | The time in milliseconds that the animation should run. If null is passed, the default value of 0 is used. |
Return value
Type | Description |
---|---|
This method returns its parent object to allow concatenation of method calls. |
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 |