svg.js README

The project's README from github.com/svgdotjs/svg.js. As one markdown file: README.md.

SVG.js

Build Status Coverage Status Cdnjs jsdelivr Join the chat at https://gitter.im/svgdotjs/svg.js Twitter

A lightweight library for manipulating and animating SVG, without any dependencies.

SVG.js is licensed under the terms of the MIT License.

Installation

Npm:

npm install @svgdotjs/svg.js

Yarn:

yarn add @svgdotjs/svg.js

CDNs:

https://cdnjs.com/libraries/svg.js
https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js
https://unpkg.com/@svgdotjs/svg.js

Documentation

Check svgjs.dev to learn more.

Donate or Sponsor

svg.js (svgdotjs/svg.js)

vector-graphics
Searching Database…

11.8K ·GitHub
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.
Creator
svgdotjs
Size
11.5 MB
Stars
11.8K
Age
13y
Commits · 90 Days