I have seen that pretty much all of the SVG animations involve embedding the XML directly into the page and using GSAP to manipulate the various properties and attributes. I am looking to see if it is possible to animate SVG by simply embedding it in an <img> tag. Here is a simple example I am looking to do to tween the SVG color on rollover but it doesn't seem to be taking it. These SVG elements are going to be implemented through a CMS so I was thinking that including them with an <im
Adding your SVG via <img> element will prevent manipulation with JavaScript. You can get some control of it with CSS, but it has to be part of the SVG code. External stylesheets won't work on the nested elements.
You'll have the most control and options by putting the code inline. That being said, we have had some discussions about injecting the code. Here are a couple threads that may be of interest to you.
Happy tweening.