direction
[ Function ]
public direction(valueNew: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse' | null): this;
Sets the direction of the animation. The direction not only affects the order of the keyframes but also the timing function.
Parameter
Name | Type | Description |
---|---|---|
valueNew | The direction of the animation. If null is passed, the default value
|
Return value
Type | Description |
---|---|
This method returns its parent object to allow concatenation of method calls. |
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 |