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 |
---|---|
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'
Available from 1.8 |