title: How to get current time/position of a SVG animation?
body: <p>Suppose I'm making an animation in SVG like this:</p>
  
  <pre><code>    &lt;animate begin="click" attributeName="opacity"
       from="1" to="0.5"
       dur="5s" fill="freeze" /&gt;
  </code></pre>
  
  <p>If I use this together with Javascript event handlers, is there a way to get the current time/position of this animation so I can say if it's about to end? I'm looking for something similar to using elem.getAttribute().</p>
  
  <p>Note: my intention is to reverse the animation without CSS support, but anyway the question is interesting by itself.</p>