clearKeyframes

[ Function ]

public clearKeyframes(): this;

Deletes all keyframes of this animation.

Parameter

Name

Type

Description

-

-

-

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', '');
animation.addKeyframe('top', '20px', 0);
animation.clearKeyframes();
var keyframes = animation.keyframes(); // empty array
clearKeyframes 1:

Available from 1.8