Export an animated SVG
Export makes your animation one self-contained .svg file, with its player inside, ready for a web page. This tour goes through the Animated SVG options and the ways to get the file out.
Step by step
Open Export
Click Export at the right of the top bar (Ctrl E), then Animated SVG across the top of the window (it opens on the kind you used last). The preview on the right plays the exported file itself.
JavaScript or CSS only
Under Format, Animation is JavaScript: it plays every animator and easing, and can start on load, hover, click or scroll. It plays when the SVG is in the page or in an object tag, but not as an image (an img tag or a CSS background). CSS only needs no script, so it plays as an image too, but starts only on load or hover. Click the note under it to read more.
Choose its size
Under Size, Responsive (the default) makes the SVG fill whatever holds it, keeping its proportions. Click Fixed to give it a size in pixels: type W and H, or a Scale.
Get the code for your site
Click Embed in your site above the preview: ready code for HTML, React, Next.js, Vue, Angular and Svelte, with a note on where to put the file. Copy snippet copies it.
Download it
Click Download .svg at the bottom right: the file is named after the project. Copy SVG code beside it copies the whole file, to paste into a page. The footer shows the file's size.
Keys
| Ctrl E | Export |
| Ctrl Shift E | Export the selected layers |