Ultimately this is for a Kiosk-style app (using jQuery 1.6.4) that will run in Firefox, so answers can be Firefox-specific.
I'm trying to make a animated SVG, but I'm trying to animate it by dynamically inserting SMIL. I've seen nothing that suggests it cannot be done, and both http://satreth.blogspot.ch/2013_01_01_archive.html and http://srufaculty.sru.edu/david.dailey/svg/SMILorJavaScript.svg seem to indicate that it can be done.
The problem as I understand it is that I need to call the beginElement
method to start the dynamically inserted animation, but I don't see it anywhere.
Here's a fiddle demonstrating the problem: http://jsfiddle.net/2pvSX/
Failing an answer to the question in the title:
- What am I doing wrong?
- Are there any resources available to better understand what I'm trying to do?
and is this a problem with:
- How I'm defining the SVG?
- How I'm creating the SMIL?
- How I'm accessing the SVG?
- How I'm inserting the SMIL?
- Something else entirely?
Finally, is there a better way to animate the SVG?