Snap.svg is a JavaScript library for creating and working with SVG.
Snap.svg is an open source javascript library for creating and working with svg. It helps create interactive vector graphics with support for interactivity, animations and also allows working with existing svg with a simple JavaScript API.
Snap.svg was written by Dmitry Baranovskiy (author of Raphaël), and is designed specifically for making it easier to work with svg, and supporting features like masking, clipping, patterns, full gradients, groups, and more. The project is released by Adobe Systems.
References:
Demo
Drawing styling and adding animation to a circle.
var s = Snap(500,500);
var circle = s.circle(150, 150, 100);
circle.attr({
fill: "#bada55",
stroke: "#000",
});
circle.animate({r: 50}, 1000);