http://rsasandbox.appspot.com/beginElement-ex.svg |
Note: If the example animation does not restart after one complete circuit it means that your browser (like Chrome) doesn't yet support the SVG DOM beginElement ( ) method. The animation should restart properly in the Opera browser.
<script type="text/javascript" >
<![CDATA[
function BeginAgain(bubble) {
var bub = SVGDocument.getElementById(bubble);
bub.beginElement();
}
]]>
</script>
...
<animateMotion id="bubble1am1" ... >
...
<animateMotion id="bubble2am1"
begin="bubble1am1.end"
...
onend="BeginAgain('bubble1am1')" >
Does this still not work in Chrome? I've written a pretty extensive animation in SVG that works great in Firefox (and, curiously, the iOS version of Safari), but it doesn't work in OSX Safari and in Google chrome.
ReplyDeleteI don't think that I've tried this in a recent version of the Chrome Beta, but it still doesn't work under Version 24.0.1312.52 beta.
DeleteThis comment has been removed by the author.
ReplyDeletebub.beginElement();
ReplyDeletethis is work on chrome and firefox very well but
this is not supported in IE10 browser then what we use that will run on IE10
how to achieve this issue