What is this?
SVG.js is a lightweight JavaScript library for creating, manipulating, and animating SVG graphics in the browser, with no external dependencies.
Is it a framework or a library?
It's a library you import into a web project to generate and control SVG elements programmatically, not a standalone app or full framework.
How do I add it to a project?
Install it via npm (npm install @svgdotjs/svg.js) or Yarn (yarn add @svgdotjs/svg.js), or include it directly from a CDN.
Do I need any other libraries or frameworks to use it?
No, SVG.js has zero dependencies and works standalone in any JavaScript environment that renders SVG in the DOM.
Where does this run?
It runs in any web browser, as it targets SVG rendering in the DOM.
Where can I find full documentation and examples?
The full documentation lives at svgjs.dev, which covers the API in depth.
Can I use it with build tools or bundlers?
Yes, it's published as an npm/Yarn package, so it works with any modern JavaScript bundler out of the box.
Does it support animation out of the box?
Yes, animating SVG elements is one of its core features alongside creating and manipulating them.
What are similar projects?
vivus, anime, lottie-web, paper.js, fabric.js, raphael, mojs, hyalite--liquid-glass
Which topics is it in?
svg-animation, vector, vector-graphics, html5, no-dependencies, lightweight, svg, graphics, animation, browser, ui, web-development