I have a SVG that contains two polygons. I want to animate the first polygon from start to end and animate the second polygon after that. The animation will work like a fill.
I want to use stroke-dasharray and css keyframes only.
I am providing a pen if you want to work on it. https://codepen.io/anon/pen/byVpjM
<svg height="600" width="800">
<polygon class="animateFirst1" points="60 548,171 548,170 266,300 345,297 273,293 213,113 67,54 68"/>
<polygon class="animateSecond2" points="291 211,295 279,298 345,404 259,402 552,512 551,513 60,457 60,440 60"/>
</svg>
So the output I am looking for is, animation starts from the bottom left of M and ends at the bottom right. Any help will be much appreciated.