-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Animating multiple parameters doesn't work #1325
Comments
I assume this is only about "stroke"? Or are other functions involved? |
Not just "stroke", I also tried animating color and radius at the same time and its also broken |
but this works: https://jsfiddle.net/jcLn37pq/ |
The order of the chaining also has a influence: |
I took a quick look at the returned runner object and noticed that the this: //works fine
rc2.animate(500).attr({
"fill": '#f00',
"stroke-width": 10
}); gives this: [ "fill", null, 5, 255, 0, 0, 0, "rgb", "stroke-width", null, 2, 10, "" ] While this: //only stroke-width changes
rc2.animate(500).attr({"fill": '#f00'}).attr({"stroke-width": 10}); gives this: [ "stroke-width", null, 2, 10, "" ] As a workaround I will just use a single |
Interesting! Thx for investigating! |
Bug report
Fiddle
https://jsfiddle.net/0s9pqe5r/
Explanation
What is the behaviour you expect?
What is happening instead?
What error message are you getting?
The text was updated successfully, but these errors were encountered: