I had some free time and thought to experiment a bit with the new DrawSVG plugin from Greensock, it is a plugin that animates the border of an SVG, other parts of the SVG like fill or opacity could already be tweened via TweenMax/Lite.
Here’s a quick tutorial to get you started and I hope you’ll forgive my lousy Illustrator skills…
See the Pen OPNOgM by Michael Dobekidis (@netgfx) on CodePen.
Learn more about the SVG Plugin here: Greensock DrawSVG-Plugin
You can read more about his findings here: svg-css-injection
So after injecting the SVG inside the DOM I thought of why shouldn’t we try and animate it (no one likes static images right?), some simple things like change color gracefully, scale it or even programmatically create a simple animation of it.
I will show here how we can use simple tools like JQuery and TweenMax from Greensock and animate a simple SVG graphic.
View a DEMO here: AnimateSVG DEMO