0
var path = document.querySelector('.path');
\t var length = path.getTotalLength();
\t path.style.transition = path.style.WebkitTransition =
\t 'none';
\t path.style.strokeDasharray = length + ' ' + length;
\t path.style.strokeDashoffset = length;
\t path.getBoundingClientRect();
\t path.style.transition = path.style.WebkitTransition =
\t 'stroke-dashoffset 2s ease-in-out';
\t path.style.strokeDashoffset = '0';
<svg id="test" width="800px" height="369.643px" viewBox="0 0 800 369.643" enable-background="new 0 0 800 369.643">
\t <path fill="none"
\t stroke="#596E7A" stroke-width="10" stroke-miterlimit="10" stroke-dasharray="25,25" class="path" stroke-linecap="round"
\t d="M34.762,225.595c25.084,109.862,211.31,151.786,342.262,108.929 \t c129.701-42.448,212.358-186.755,180.357-288.095C543.096,1.19,460.075-8.983,449.372,67.834 c-15.801,113.4,167.532,164.904,318.724,34.547"/>
\t </svg>
\t <svg width="800px" height="369.643px" viewBox="0 0 800 369.643" enable-background="new 0 0 800 369.643">
\t <path fill="none"
\t stroke="#596E7A"
\t stroke-width="10"
\t stroke-miterlimit="10"
\t stroke-dasharray="25,25"
\t stroke-linecap="round"
\t d="M34.762,225.595c25.084,109.862,211.31,151.786,342.262,108.929 \t c129.701-42.448,212.358-186.755,180.357-288.095C543.096,1.19,460.075- 8.983,449.372,67.834
\t c-15.801,113.4,167.532,164.904,318.724,34.547"/>
\t </svg>