iterationCount

[ Function ]

public iterationCount(): number | 'infinite';

Returns the configured number of repetitions the animation should run through. If no repetition number has been configured, the default is 1.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

number, string

The number of repetitions the animation should run through. If the animation is to be repeated indefinitely, the value is 'infinite'

Sample - JavaScript

var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var iterationCountDefault = animation.iterationCount(); // 1
animation.iterationCount(5);
var iterationCount = animation.iterationCount(); // 5
iterationCount 1:

Available from 1.8