title: Changing the X and Y coordinates of a SVG path
body: <p>How can I get the X and Y coordinates of a path in jQuery and then change them? I wanting to be able to animate my icon on click. I know there are other ways but  would like to use jQuery</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;svg class="path" style="height: 32px; width: 32px;"&gt;
    &lt;g style="stroke: #ff6633; stroke-width: 4px;" fill="none" stroke-linecap="round"&gt;
      &lt;path d="M2 4 L30 4" /&gt;
      &lt;path d="M2 16 L30 16" /&gt;
      &lt;path d="M2 28 L30 28" /&gt;
    &lt;/g&gt;
  &lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>