Vartula

SVG Animator

Turn any SVG into a line-drawing animation. Tweak stroke and fill timing, then export CSS, SMIL, React, GSAP, MP4, GIF or PNG frames.

Drop an SVG here

Everything stays in your browser.

0.00s / 0.00s

Settings

s
s
s

Export code

Loading…

How to animate an SVG

  1. Upload an SVG, drag it onto the page, or paste the markup.
  2. Adjust stroke drawing and fill fade timing: duration, delay, stagger, easing and direction.
  3. Pick Transition to play once or Animation to loop, and set a background color.
  4. Copy the generated CSS, SMIL, React, JavaScript or GSAP code, or export a video, GIF or PNG sequence.

A line-drawing animator that runs in your browser

The SVG Animator turns logos, icons, signatures and illustrations into the popular “self-drawing” effect. Strokes are traced with stroke-dashoffset and fills fade in afterwards, each with its own duration, delay, per-shape stagger, easing curve and direction.

One animation engine drives the live preview and every export, so the CSS, SMIL, React, vanilla JavaScript and GSAP code, and the MP4, WebM, GIF and PNG renders, all match what you see. Nothing is uploaded: your SVG is sanitized and processed locally.

Export formats

FormatBest for
CSSPure CSS keyframes, the lightest option for websites. Pair it with the exported SVG markup.
SMILA single self-contained SVG file that animates anywhere SVG is shown, even in an <img> tag.
ReactA drop-in React component (TypeScript) with the SVG inlined.
JavaScriptVanilla JavaScript using the Web Animations API, for controlling playback from code.
GSAPA GSAP 3 timeline, for sites that already use GSAP.
MP4H.264 video with the best compatibility, for social media and slides.
WebMSmaller video that supports transparency.
GIFPlays everywhere, limited to 256 colors, supports transparency.
PNG sequenceLossless transparent frames in a .zip, for video editors.

Frequently asked questions

How does the SVG line-drawing animation work?

Each shape's outline is turned into a single dash as long as the shape itself. Animating stroke-dashoffset from the full length to zero slides that dash into view, so the line appears to draw itself. Vartula measures every path, line, polyline, polygon, circle, ellipse and rect for you.

Is my SVG uploaded anywhere?

No. Parsing, previewing and every export — CSS, JavaScript, MP4, GIF and PNG — happen entirely in your browser. Your file never leaves your device.

What is the difference between Transition and Animation?

Transition plays once and holds the final frame, which suits logos that draw in on page load or when scrolled into view. Animation loops forever; combine it with the Alternate direction to draw in and out continuously.

Why doesn't my text animate?

Only shapes with outlines can be drawn. Convert text to paths in your design tool (in Figma: Outline stroke / Flatten; in Illustrator: Create Outlines; in Inkscape: Object to Path) and upload the SVG again.

Which export format should I use?

Use CSS for the lightest result on websites, SMIL for a single self-contained SVG file, React or vanilla JavaScript when you want to control playback from code, and GSAP if your site already uses it. For social media or slides, export MP4, WebM or GIF.

Which browsers support video export?

MP4 and WebM use the WebCodecs API, available in current Chrome, Edge, Safari and Firefox. Older browsers fall back to recording WebM in real time. GIF and PNG export work in every modern browser.