You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Animation (effect, timeline)
... timeline
An optional value which, if present, specifies the timeline with which to associate the newly-created animation. If missing, the default document timeline of the Document associated with the Window that is the current global object is used.
This doesn't leave any declarative way to set any of the other Animation's attributes.
These attributes are:
Currently the
Animation()
constructor is defined as:This doesn't leave any declarative way to set any of the other
Animation
's attributes.These attributes are:
rangeStart
andrangeEnd
id
And of course we can add to that:
timeline
And we're also in the process of adding:
trigger
Proposal
Allow the second param to be an object containing all the
Animation
-related properties, so they can be set declaratively in a single expression.Example:
Or:
I can also see possible future extensions, but the above should already allow a much more convenient and coherent API.
cc @flackr @birtles @bramus
The text was updated successfully, but these errors were encountered: