useCss
[ Function ]
public useCss(valueNew: boolean | null): this;Sets whether, if possible, the animation should be played with CSS or JavaScript.
Parameter
Name | Type | Description |
|---|---|---|
valueNew | Whether the animation should be played with CSS or JavaScript. 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 useCssDefault = animation.useCss(); // true
animation.useCss(false);
var useCss = animation.useCss(); // false![]() | Available from 1.8 |
