Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Animation with null timeline is not supported #226

Open
kevinbrewster opened this issue Jan 20, 2021 · 0 comments
Open

Error: Animation with null timeline is not supported #226

kevinbrewster opened this issue Jan 20, 2021 · 0 comments

Comments

@kevinbrewster
Copy link

"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant