← All text tools

SVG animation generator

Paste an SVG path and get a line drawing or shape morph animation with duration, delay, easing and repeat settings, as copyable CSS or SMIL code with a live preview.

  • Free
  • No sign-up
  • Works on any device

About SVG animation generator

Line drawing animation hides a path by giving it a dash as long as the path and then sliding the dash offset to zero, which looks like the line is being drawn. This tool measures your path length in the browser and writes that CSS, or an equivalent SMIL animate element. In morph mode it animates the d attribute between two paths that have the same commands. A path of M10 10 H 110 has length 100, so the dash array is 100. You can copy the code or download an SVG file.

How to use SVG animation generator

  1. Pick line drawing or shape morph and paste the path data into the first box.
  2. Set colour, stroke width, duration, delay, easing and how the animation repeats.
  3. Copy the generated code or download the SVG file.

Why use this tool?

Also known as

Frequently asked questions

Why does my shape morph jump instead of blending?

Both paths must use the same commands in the same order with the same number of values. The page warns you when they differ. Redraw one shape using the same type of curves as the other.

Should I choose CSS or SMIL code?

CSS is easiest to edit and works when the SVG is inline. SMIL lives inside the SVG file and also works for images, and it is the safer choice for the shape morph in Safari.

Where do I get the path data?

Open an SVG in a text editor and copy the value of the d attribute of a path element, or export a path from a vector editor such as Inkscape.

Is SVG animation generator free?

Yes. SVG animation generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.