This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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