svg polyline reversed and animated