pause

[ Function ]

public pause(): this;

Pauses the animation. A paused animation can be continued with run().

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', '')
    .addKeyframe('left', '20px', 0)
    .addKeyframe('left', '520px', 1)
    .duration(2000)
    .run();
window.setTimeout(() => animation.pause(), 700);
window.setTimeout(() => animation.run(), 2000);
pause 1:

Available from 1.8