Yes, SVG can be rendered and animated.
Should you do it? Probably not. You're better off using a dedicated SVG lib and inserting the resulting element into your template.
http://snapsvg.io/Yes, MathML works but not in Chrome because Chrome doesn't support MathML. They think you should use MathJax instead.