I'm using a set of svg icons that get injected into the page from a separate file.
<svg class="icon-home">
<use xlink:href="symbol-defs.svg#icon-home"></use>
</svg>
This loads the path into the shadow DOM. Is there any way that I can get the path length in order to do a 'drawing' animation, or am I going to have to rethink how I'm loading the svg into the DOM? I'm doing it this way because it is part of a page builder plugin and the user can select from a large number of icons.