duration

[ Function ]

public duration(valueNew: number | null): this;

Sets the duration in milliseconds that this animation should run.

Parameter

Name

Type

Description

valueNew

number, null

The time in milliseconds that the animation should run. If null is passed, the default value of 0 is used.

Return value

Type

Description

TcHmi.Animation

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
duration 1:

Available from 1.8