You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.
Never mind! I had it wrong. What I wanted was iterations, not duration. If I set duration to Infinity that meant that the change (color change in my case) would take forever, i.e. never happen. What I wanted was:
HtmlElement t = e.target;
var animation = new CoreAnimation();
animation.duration = "500";
animation.iterations = "Infinity";
animation.keyframes = [
{'background-color': 'blue'},
{'background-color': 'white'}
];
animation.target = t;
animation.play();
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A duration of, say, 2000 works fine. But "Infinity" does not.
https://github.com/dart-lang/core-elements/blob/master/lib/src/core-animation/core-animation.html#L135
The text was updated successfully, but these errors were encountered: