svgdotjs/svg.js

Animate color stops working after first call to animate

mrname5 opened this issue · 3 comments

[# Bug report]

Fiddle

https://jsfiddle.net/Mrname5/3tqsoekz/1/

Explanation

  • What is the behaviour you expect?
    I expect the color of circle1 to continue animating each time I call the animate function. For example, I expect to be able to animate the color of circle1 from blue to black then back to blue with two function calls.
  • What is happening instead?
    It performs correctly the first time but after that, it does not animate anymore. It does not produce an error it just does not animate.
  • What error message are you getting?
    There is not error message it just does not respond.

Using this code, I have observed the same problem. Is this method for animating color incorrect, or is this a bug?

Use hexadecimal colors. Color names are not supported. We dont ship a huge color map as part of the code

https://jsfiddle.net/0jtorgkn/

thanks