fillMode

[ Function ]

public fillMode(): 'none' | 'forwards' | 'backwards' | 'both';

Returns whether the first keyframe should be effective before the start of the animation and/or the last keyframe after the end of the animation. The default is 'none'.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

string

The fill mode of the animation.

Sample - JavaScript

var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
var fillModeDefault = animation.fillMode(); // 'none'
animation.fillMode('both');
var fillMode = animation.fillMode(); // 'both'
fillMode 1:

Available from 1.8