1. SVG.jsThe first library I have to recommend is SVG.js. Naturally this is totally free and open sourced for use in any type of web project. It’s very lightweight totaling only 16KB when gzipped and about 62KB minified. Granted this is pretty large as a whole, but compared to similar libraries it’s on the smaller side. Installation is pretty simple with support for npm and a whole page dedicated to getting started. Each page in the documentation has plenty of JS and HTML codes for you to look through and get started. Plus you can find embedded demos hosted on JSFiddle to see how this library works in action.
3. Bonsai.jsFor a more general graphics library I highly recommend Bonsai.js. It’s been around for years and it’s one of the more well-maintained projects with a core group of supporters. This lets you build some pretty cool stuff with SVGs and the canvas element. You can design little icons for landing pages or more complex graphs like pie charts. Not to mention you get full control over paths in SVGs along with animation effects using keyframes in the Bonsai library. Take a peek at the examples page for a few live demos and visit the online docs to get started with your first Bonsai graphics.
4. Paper.jsPaper.js calls itself the Swiss Army knife of vector graphics scripting. And in many ways this is right on the money. By default Paper.js works on top of HTML5 canvas elements with its own DOM model to manipulate. You can edit bezier curves right inside the code which gives you far more control with even basic scripting. Have a look at their examples page if you’re curious to see this in action. I’d say this is more of a canvas manipulation library than just a custom animation or SVG library. But it’s definitely powerful and a great choice for anyone getting into SVGs for the web.
7. Velocity.jsTechnically the Velocity.js library is a free animation library, however it does support SVGs making it a fantastic choice for all UI/UX animation. You can also run Velocity with jQuery or on its own using vanilla JS. If you look through the main page you’ll find all the setup info you need along with documentation for each type of animation. Most of them even have demos on CodePen so you can see how they work in the browser. Stick to Velocity if you’re looking to create practical animations for a website. I specifically recommend it for basic page UX motion or more complex microinteractions.
8. Vivus.jsWith Vivus.js you can build one very specific type of animation: the drawn outline effect. You see this with SVG images all the time. An SVG path can be animated into view one point at a time so it looks like the entire graphic is being drawn by hand. This is a really neat effect and with Vivus it’s super easy to setup. Granted this doesn’t radically improve the user experience or increase usability, but it is a really fun library to work with. Especially if you’re brand new to SVGs and you want an easy JS library to play with for testing.
Searching for a tool to make cross-platform design a breeze? Desperate for an extension that helps you figure out the…
By Robert Reeve
As a creative professional, navigating the digital realm is second nature to you. It’s normal to follow an endless…
Remember when Merriam-Webster added Photoshop to the dictionary back in 2008? Want to learn how AI is changing design…
By Max Walton
Remember the screech of dial-up internet? Hold fond memories of arcade machines? In this list, we’re condensing down 30…