direction

[ Function ]

public direction(): 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';

Returns the configured direction of the animation. If no direction has been configured, the default is 'normal'. The direction not only influences the order of the keyframes but also the timing function.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

string

The direction of the animation.

Sample - JavaScript

var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var directionDefault = animation.direction(); // 'normal'
animation.direction('alternate');
var direction = animation.direction(); // 'alternate'
direction 1:

Available from 1.8