Manipulating and Animating SVG with Raw Javascript
When I first started building the Hanzi Writer library, I assumed that in order to manipulate and animate javascript that I’d need to rely on an SVG library of some sort. I settled on SVG.js as it was the leanest library I could find. But even then, adding in minified SVG.js adds 67 KB to the bundle size! Even velocity.js, which only handles animation, adds 48 KB minified to your bundle sizes. For reference, the entirety of Hanzi Writer library currently is around 30 KB, so more than doubling the size of the library just to do basic SVG animation is definitely not acceptable.
chanind.github.io