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: <rect> attribute transform: Expected ')', "rotate(0 NaN NaN)" #167

Closed
pastelsky opened this issue May 24, 2017 · 2 comments
Closed
Assignees
Milestone

Comments

@pastelsky
Copy link

pastelsky commented May 24, 2017

When I try to animate the transform attribute of a svg element, I get a series of following error -

anime.min.js:25 Error: <rect> attribute transform: Expected ')', "rotate(0 NaN NaN)"

My tween looks like -

anime({
      targets: '#rect-top',
      x:[13, 0, 7, 1, -0.784, 0],
      y: [15, 4, 15, 1, 8.628, 0],
      width:[23, 54, 19, 55, 30, 49.5],
      transform: [
        'rotate(0 0 0)',
        'rotate(0 0 0)',
        'rotate(0 0 0)',
        'rotate(0 0 0)',
        'rotate(-30 14.215 10.88)',
        'rotate(0 0 0)',
      ],
  })

I'm not sure why it thinks the 3rd value is NaN, even though the format is correct.

@juliangarnier
Copy link
Owner

Will be fixed in next reelease.
Related #119, #174

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

No branches or pull requests

3 participants