skip
[ Function ]
public skip(): this;
Skips the animation. The CSS properties of the last keyframe are written to the style
attribute of the animated element and animation-specific CSS is removed from the DOM. This happens independently of the values set by fillMode() or cleanup(). When determining the last keyframe, however, the current animation direction is taken into account. Has no effect when the animation has expired and a cleanup has been performed.
If the animation is to be reset to the initial keyframe, reset() can be used.
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', '520px', 1)
.duration(2000)
.run();
window.setTimeout(() => animation.skip(), 700);
![]() | Available from 1.8 |