run
[ Function ]
public run(): this;
Starts or resumes the animation if paused. An animation can only be started if a keyframe is defined with progressPoint 0 and a keyframe with progressPoint 1.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
This method returns its parent object to allow concatenation of method calls. |
Sample - JavaScript
var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '')
.addKeyframe('left', '20px', 0)
.addKeyframe('left', '120px', 1)
.duration(1000);
animation.run();
Available from 1.8 |