Please define your problem or issue as clear as possible.
For a problem, please fill the following:
Vivus version:
0.4.5
Browser:
Microsoft Edge 84.0.522.50
Steps to reproduce it:
I am trying to animate an SVG line, the problem occurs when I try to modify the coordinates of the line after I used Vivus to animate it.
My goal is to modify the coordinates of the line (for example change its size, position) and then animate it, and do the above procedure multiple times.
Problem with changing the attributes of an SVG line
Create Vivus Object (new Vivus("win_line_svg", {type: 'oneByOne', duration: 30});)
Try to change the attributs of the SVG line(x1,y1,x2,y2) got error (Cannot read property 'baseVal' of undefined")
Trying to resize the line before creating the Vivus Object will work.
You can reproduce the problem in the JSFiddle:
Click on Play button
Click on Resize button => (Cannot read property 'baseVal' of undefined")
[note]
Please have a minimum of politeness. There's unfortunately only me as contributor/maintainor which help on my free time, I'm not the Amazon customer service or your Mom. I don't ask to send me flowers and tell me how amazing Vivus is (that won't make me help you quicker). But please try to do as much as you can before opening an issue: check that no closed issue mention a similar problem, that your script is executed correctly (conflicts, race conditions...).. Thanks :)
[/note]
Please define your problem or issue as clear as possible.
For a problem, please fill the following:
Vivus version: 0.4.5 Browser: Microsoft Edge 84.0.522.50
Steps to reproduce it: I am trying to animate an SVG line, the problem occurs when I try to modify the coordinates of the line after I used Vivus to animate it. My goal is to modify the coordinates of the line (for example change its size, position) and then animate it, and do the above procedure multiple times.
Problem with changing the attributes of an SVG line
Trying to resize the line before creating the Vivus Object will work.
You can reproduce the problem in the JSFiddle:
Thank you.
JSFiddle link (or similar platform): https://jsfiddle.net/konmaz/uxq6vw3L/latest/
[note] Please have a minimum of politeness. There's unfortunately only me as contributor/maintainor which help on my free time, I'm not the Amazon customer service or your Mom. I don't ask to send me flowers and tell me how amazing Vivus is (that won't make me help you quicker). But please try to do as much as you can before opening an issue: check that no closed issue mention a similar problem, that your script is executed correctly (conflicts, race conditions...).. Thanks :) [/note]