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

SVG transform animations fills forwards #605

Open
ewilligers opened this issue Jun 12, 2014 · 1 comment
Open

SVG transform animations fills forwards #605

ewilligers opened this issue Jun 12, 2014 · 1 comment

Comments

@ewilligers
Copy link
Contributor

In the following example, the scale remains in effect after the 2 seconds have passed.

  // We have a polyfill bug here: fill 'none' is not being respected.
  element.animate([{transform: 'scale(1)'}, {transform: 'scale(3)'}], {duration: 2000, fill: 'none'});

This observed faulty behavior can be avoided by noting that transform is an SVG attribute; it must be added to svgProperties.

@ewilligers
Copy link
Contributor Author

My commit was reverted as it caused a Travis failure in Firefox.

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