title: Changing color on all svg
body: <p>i'm trying to use an effect i found on Codepen, changing colours on SVG.
  There's an issue on the script that makes the effect affect only the first SVG and not the others on the page as i would like.</p>
  
  <p>Any help? thanks</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-js lang-js prettyprint-override"><code>var select = function(s) {
      return document.querySelector(s);
  };
  var svgItem = select('svg');
  var chars = '0123456789ABCDEF'.split('');
  
  var randomColor = function () {
    var color = '#';
    for (var i = 0; i &lt; 6; i++)
      color += chars[Math.floor(Math.random() * 16)];
    return color;
  };
  
  setInterval(function () {
    svgItem.style.fill = randomColor();
  }, 1500);</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>svg {
     fill: #000000;   
     transition: fill 1.5s ease;
     -webkit-transition: fill 1.5s ease;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;svg height="100" width="100"&gt;
  &lt;circle cx="40" cy="40" r="40"&gt;&lt;/circle&gt;
  &lt;/svg&gt;
  
  
  &lt;svg height="100" width="100"&gt;
  &lt;circle cx="40" cy="40" r="40"&gt;&lt;/circle&gt;
  &lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>