I am trying to animate an SVG's path data attribute using jQuery.
At the moment, I have created the SVG, and stored two paths, with a button that adds an animate element.
I have success when I alter the attribute directly (shown by the first svg), though the animate doesn't alter anything on the second svg.
$('.svg2 svg path').append('<animate attributeName="stroke-dasharray" from="'+OrigPath+'" to="'+NewPath+' dur="4" repeatCount="1">');
Any help would be great. Here is the fiddle : http://jsfiddle.net/vB8tu/1/