SVG Animation Authoring – GSAP Code Generator

GSAP 3.15.0

Canvas

Background

Click to select a layer · Shift+click to select several

Timeline

Drag a bar to move it · drag its ends to change the length · click the ruler to jump
Layers

Left/Right to move, Alt+Left/Right to change length, Delete to remove

How to use

  1. Load an SVGUse the button at the top right to pick an .svg file or paste its code. You can also drop a file anywhere on the page. Exports from Illustrator and Figma work as they are.
  2. Select layersClick a shape on the canvas or a row in the timeline. Shift+click selects several.
  3. Add an animationPick one under “Add animation” and a bar is added at the playhead (the green line). There are 30+ motions in five groups: In, Emphasis, Out, Stroke and Change. With several layers selected, each one starts 0.1 s after the previous.
  4. Adjust the timingDrag a bar to change when it starts and drag its ends to change its length. Bars snap to other bars and to the playhead. Type exact values in the Properties panel. For a group, “One by one” animates the elements inside it one after another (for example, letter by letter).
  5. Export the code“Export code” gives you GSAP code to paste into your page. You can also save it as an HTML file.

Shortcuts

* Stroke drawing, morphing and motion paths use GSAP’s free plugins (DrawSVG, MorphSVG, MotionPath). The exported code includes the script tags it needs.

Load SVG

Drop an .svg file here

Animations whose elements also exist in the new SVG are kept.

Export code

The SVG, GSAP and the animation in one piece. Paste it inside <body> and it runs.