Skip to content

Error: Animation with null timeline is not supported #226

@kevinbrewster

Description

@kevinbrewster

"Error: Animation with null timeline is not supported" is incorrectly thrown when creating a new Animation using web-animations-next.min.js version 2.3.2 on Safari 14.0.2.

let effect = new KeyframeEffect(box, { opacity: 0 }, 300);
let animation = new Animation(effect);
// -> Error: Animation with null timeline is not supported

As per the spec, timeline is:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions