cleanup
[ Function ]
public cleanup(valueNew: boolean | null): this;Sets 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.
Parameter
Name  | Type  | Description  | 
|---|---|---|
valueNew  | Whether animation-specific CSS should be removed after the end of the animation. If null is passed, the default value   | 
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 cleanupDefault = animation.cleanup(); // false
animation.cleanup(true);
var cleanup = animation.cleanup(); // true![]()  | Available from 1.8  | 
