I'm making a design, that needs to have a bunch of different dashed lines animated. I need it done exactly how this Codepen does it: https://codepen.io/Evgeny/pen/IEGoq
But when I copy my own SVG-code into that pen, then it doesn't animate.
This is my SVG-code:
<svg width="1400px" height="892px" viewBox="0 0 1400 892" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="outer-vector" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-dasharray="19.796,19.796">
<g id="inner-vector" transform="translate(-40.000000, -65.000000)" stroke="#34A9D6" stroke-width="2">
<path d="M41,956 C436.408926,930.206693 476.595836,649.998441 667.229605,409.842185 C811.794179,227.722893 1042.8769,68.6364821 1581,61" id="Stroke-3"></path>
</g>
</g>
</svg>
If I just copy that in, then it's just static.
If I then add the class path to the <path>-object, then it's animating, but not like the original line was.
How can I animate my dashed SVG-file, in the same fashion as that Codepen?
There's also this Pen here ( https://codepen.io/nevolgograd/pen/WOLaKB ), that has an effect that I'm after, but my dashed SVG-line doesn't animate there either.
Addition1
The dashed lines need to be on top of images, - so I can't simply make a second line on top of the first one, that gets gradually removed with the stroke-dashoffset/dasharray trick.