constructor
Summary
Constructs an new AnimationPlayer object.
Method of apis/web animations/AnimationPlayerapis/web animations/AnimationPlayer
Syntax
var myPlayer = AnimationPlayer.constructor(source, timeline);
Parameters
source
- Data-type
- String
(Optional)
if not null, specifies the source content (an AnimationNode) to assign to the newly created player.
timeline
- Data-type
- String
(Optional)
An optional value which, if not null, specifies the AnimationTimeline with which to associate the newly created player.
Return Value
Returns an object of type