I have an svg path with the following points in the 'd' attribute. This there a way for me to target just one of the coordinate numbers in 'd' say like 0 in "L25 0 " to manipulate in java script. IF so what would this syntax look like? I am hoping to have access to one of the coordinate number so that I can increment it to animate the path.
function NavHalf() {
var arrow = document.getElementById("arrowUp");
arrow.setAttribute('d', 'M0 25 L25 0 L50 25');
}
<svg height="25" width="50" onclick="NavHalf()">
<path id="arrowUp" d="M0 0 L25 25 L50 0 " style="stroke:green;stroke-width:2; fill:none" />
</svg>