title: Make SVG path take full width and height of screen
body: <p>I have an inline SVG path that animates a dash to look like the snake game. Now my question is how to get this path to take up the full width and height of the screen and act responsive if the screen goes smaller or bigger.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 659 522" enable-background="new 0 0 659 522" xml:space="preserve"&gt;
      &lt;path class="path" width="100%" height="100%" fill="none" stroke="#00ff00" stroke-width="5" stroke-miterlimit="10" d="M656.5,2.5v517H2.5V2.5H656.5z"
      stroke-dasharray="2042 300"
      stroke-dashoffset="2342" /&gt;
  &lt;/svg&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.path {
      animation: dash 10s linear infinite;
  }
  
  @-webkit-keyframes dash {
      to {
          stroke-dashoffset: 0;
      }
  }
  </code></pre>
  
  <p>Here is a fiddle with the code I have.</p>
  
  <p><a href="http://jsfiddle.net/c3ar6e5o/" rel="nofollow">http://jsfiddle.net/c3ar6e5o/</a></p>