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: "attempt to decompose non-normalized matrix" #644

Closed
fr0 opened this issue Oct 16, 2014 · 1 comment
Closed

Error: "attempt to decompose non-normalized matrix" #644

fr0 opened this issue Oct 16, 2014 · 1 comment

Comments

@fr0
Copy link

fr0 commented Oct 16, 2014

I'm getting this error from web-animations-js as a result of animating an element from { opacity: "1", transform: "none" } to { opacity: "0", transform: "scale(2)" }. The code in question works fine using the actual element.animate (i.e. not the polyfill) in Chrome 38.0.2125.101.

@alancutter
Copy link
Contributor

This appears to be working as expected now.
Tested in Firefox:

<!DOCTYPE html>
<script src="web-animations.dev.js"></script>
<style>
#test {
  background: blue;
  width: 100px;
  height: 100px;
}
</style>
<div id="test"></div>
<script>
function main() {
  test.animate([
    {opacity: 0, transform: 'none'},
    {opacity: 1, transform: 'scale(2)'},
  ], 1000);
}
window.addEventListener('load', main);
</script>

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

2 participants