title: Onclick after effects animation (bodymovin.js) ID nothing happens
body: <p>I have a after effects bodymovin.js SVG animation with ID's on certain paths (image attached). I've put some css styles on these (<code>cursor:pointer</code>), which work fine but using jquery onClick for a redirect doesn't seem to be working. Any ideas why? </p>
  
  <p>The animation itself is in an overlay which starts after a button is pressed.</p>
  
  <p>The redirect code:</p>
  
  <pre><code>&lt;script&gt;
    $(function() {
          document.getElementById("replay").onclick = function () {
          location.href = "www.yoursite.com";
      };
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>The animation code:</p>
  
  <pre><code>&lt;script&gt;
  $( ".animation" ).click(function() {
      var anim;
      var elem = document.getElementById('bodymovin_overlay')
      var animData = {
          container: elem,
          renderer: 'svg',
          loop: false,
          autoplay: true,
          rendererSettings: {
              progressiveLoad:false
          },
          path: 'data_overlay.json'
      };
      anim = bodymovin.loadAnimation(animData);
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Also the image is attached:
  <a href="https://i.stack.imgur.com/J99Ha.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J99Ha.png" alt="enter image description here"></a></p>