keyframes
[ Function ]
public keyframes(): TcHmi.Animation.Keyframe[];
Returns the keyframes of this animation.
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
The keyframes of this animation. |
Sample - JavaScript
var animation = new TcHmi.Animation('ViewDesktopBeckhoffLogo', '');
animation.addKeyframe('top', '20px', 0)
.addKeyframe('top', '50px', 1);
var keyframes = animation.keyframes();
// [{ styles: { top: ["20px"] }, progressPoint: 0 }, { styles: { top: ["50px"] }, progressPoint: 1 }]
Available from 1.8 |