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 |
---|---|
The number of repetitions the animation should run through. If the animation is to be repeated indefinitely, the value is |
Sample - JavaScript
var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var iterationCountDefault = animation.iterationCount(); // 1
animation.iterationCount(5);
var iterationCount = animation.iterationCount(); // 5
Available from 1.8 |