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

boolean, null

Whether the animation should be played with CSS or JavaScript. If null is passed, the default value true is used.

Return value

Type

Description

TcHmi.Animation

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
useCss 1:

Available from 1.8