useCss
[ Function ]
public useCss(): boolean;
Returns whether the animation is played with CSS or JavaScript. The default is true
. The animation cannot be played with CSS if features are configured that are not supported by CSS.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
Whether the animation is played with CSS or JavaScript. |
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 |