Use fill: forwards
for your animation.
Web Animations spec: http://www.w3.org/TR/web-animations/
题
I have question about web-animations
http://www.polymer-project.org/platform/web-animations.html
I want to have an animation "freeze" in position after the animation is done. By default it appears to go back to it's original attributes
click on the grow button a few times to see the issue.
Any help would be greatly appreciated, including some background around the web-animations project and it's affiliation with polymer if any?
解决方案
Use fill: forwards
for your animation.
Web Animations spec: http://www.w3.org/TR/web-animations/