iterationCount
[ Function ]
public iterationCount(valueNew: number | 'infinite' | null): this;
Sets the number of repetitions the animation should run through.
Parameter
Name | Type | Description |
---|---|---|
valueNew | The number of repetitions the animation should run through. If null is passed, the default value of 1 is used. |
Return value
Type | Description |
---|---|
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'
Available from 1.8 |