AnimationAPI¶
Interface AnimationAPI
Hierarchy
- AnimationAPI
Index
Methods
create Animation Frames
- create
Animation Frames(name: string, frames: AnimationFrame[]): void -
Creates a new keyframe-based animation sequence.
Parameters
-
name: string
The name of the animation sequence.
-
frames: AnimationFrame[]
The keyframes of the animation sequence.
Returns void
-
The AnimationAPI provides basic functionalities to define keyframe-based animation sequences. An animation sequence defines a gradual change from one node state to another, whereby a single state is defined by an AnimationFrame which includes different properties to specify the transformation and appearance of a node at that point in time. An animation sequence is independent of a specific node and can be applied to multiple nodes with different AnimationOptions.
Example
Restrictions
Animation sequences that include transformations and are applied to a leaf node cannot yet be visualized by the viewer.