iterationCount

[ Function ]

public iterationCount(valueNew: number | 'infinite' | null): this;

Sets the number of repetitions the animation should run through.

Parameter

Name

Type

Description

valueNew

number, string, null

The number of repetitions the animation should run through. If null is passed, the default value of 1 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 iterationCountDefault = animation.iterationCount(); // 1
animation.iterationCount('infinite');
var iterationCount = animation.iterationCount(); // 'infinite'
iterationCount 1:

Available from 1.8