Only animate SVG elements

If the target (specified by id) is not an SVG element, we do not
animate it.

This applies both when the target element exists from the beginning and
when the target element is later appended to the document.
Merge pull request #17 from ewilligers/review-feedback

Only animate SVG elements