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

boolean, null

Whether animation-specific CSS should be removed after the end of the animation. If null is passed, the default value false is used.

Return value

Type

Description

TcHmi.Animation

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
cleanup 1:

Available from 1.8