'how to animate(spread effect) in SVG polygon

how to animate(spread effect) in SVG polygon

  1. require polygon fill none
  2. slowly outside spread effect with css

.cls-1{
  fill: none;
  stroke-width: 10px;
  stroke: #ffff00;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="test">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 200"><title>polygon-spread</title>
<g id="background-bitmap"><image width="400" height="200" transform="matrix(1, 0, 0, -1, 0, 200)" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAADICAYAAADGFbfiAAAACXBIWXMAAAsSAAALEgHS3X78AAALLUlEQVR4Xu3d30tcd97A8c8u+zfMw9IL0XYbWFxYQfBKWbAITS56FyOIsiwiNOQqAUHQiwiC4F5JCiIPRQkkevdcNIGwQtGrgpDCSiDdrYMXZdn5J/a5mJk4o/NDP55xk/b1gkKqZ45nvseZ98w53zP+avNt5T8BAFf0624LAEArAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAioAAkCIgAKQICAApAgJAym+6LcANOS3H8bdP4puXb+Lk9dHZ14eGY+DTL+LOX+ZjsK/9zckqx/69kdh7HTG6VYnpsW7Lk2Ocf44E5L1Qjv2F6oPrgtdHcfL6KDZ2l2Jg8lksPB5vsRDAzROQ98ZwjC4+jD/+aSAG+/rPvnxajuP/vR8bu0d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/ze3ExkSL+3vu6utGJ7tLsbG71PJ7nWYvRRQ7Lhc07N/DlutvcVHgdm3Kbqv7O7YeDyZ3YmN3KZaWP4nNc9t1nXHo5f6J6NE4J8aX6/MOpAcGH1diZWsmBoYavjg0HKOLz2Klw9WwpdkXsfLqWYwONX9kycDkSvXK3Uu+o7+M7DYWoz/Gn38XDxZnmq5JGJhciZW3tZ89th4LF8ZiOAYmn7Wfhjm2HitbKzE6NHzuWofh2hh2v1+9HJfW+3f4bP82vuI+3Xz3an70y9b3d/Dxs9aHbq49Dj3aPw16Mc5XGl8K8avNt5X/dFuIbj6Ev/fc4218N8tlJh68zT0BQCf1d7v/jc9aozXvQABIERAAUgSES+v4B336JuLOuWPmwM+bgHBJ5fj7y+pJ3dbXANQ+dt75D/jFEBAu6exTUpuvSQB+qVwHwqWVZl/E5my3pYBfCtN4AUhxCAuAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAFAEBIEVAAEgREABSBASAlP8HbG4gS5HjEn8AAAAASUVORK5CYII="/></g>
<g id="target"><polygon class="cls-1" points="324.5 45.2 274.5 45.2 249.5 88.5 274.5 131.8 324.5 131.8 349.5 88.5 324.5 45.2"/></g></svg>
</div>

I want looks like this enter image description here



Solution 1:[1]

I'm not sure, if this issue is VS-related or VisualGDB-related, or even layer-8-related, but hopefully this answer will help some people anyway.

So after trying many things not leading to success, i found this workaround:

In the project file (.vcxproj), i actually found entries for theses "invisible" files, and after deleting them and re-opening VS, i added these files again in the soluton explorer. Only this time, they correctly showed up in the solution explorer.

Weird: a compare tool showed not the slightest change in the project file, so there got to be some underlying issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Albert -Al- Hollmann