delay

[ Function ]

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

Sets the delay in milliseconds after which this animation should start.

Parameter

Name

Type

Description

valueNew

number, null

The time in milliseconds after which the animation should start. 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 delayDefault = animation.delay(); // 0
animation.delay(500);
var delay = animation.delay(); // 500
delay 1:

Available from 1.8