cleanup
[ Function ]
public cleanup(): boolean;
Returns whether animation-specific CSS should be removed after the end of the animation. If the fill mode is forwards
or both
, the CSS properties of the last keyframe are copied into the style
attribute of the animated element. The default is false
.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
Whether animation-specific CSS should be removed after the end of the animation. |
Sample - JavaScript
var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var cleanupDefault = animation.cleanup(); // false
animation.cleanup(true);
var cleanup = animation.cleanup(); // true
Available from 1.8 |