SVGANIM Open the instrument

SVGANIM Operating Manual

Instructions for the animation of SVG drawings and their delivery as pure CSS. Read once through before beginning. Refer to Sec. 3 thereafter.

Instrument SVGANIM
Document Operating Manual
Revised Oct 17, 2026
Price None
Sec. 1

General

SVGANIM is an instrument for animating SVG drawings in the browser. A drawing is received, its parts are set in motion upon a timeline, and the result is delivered as one SVG file animated by CSS alone.

No player library ships with the drawing. No fee is charged. No account is required: signed out, drawings never leave the machine. Signed in, they are filed in a folder reached from any machine, and may be posted to the Wall.

30°PIVOTAT REST
Fig. 1. Layer turned 30° about a pivot set at its lower left corner.
Sec. 2

Principal Features

Keyframe timeline
Position, scale, rotation, opacity, fill, stroke, stroke width and draw-on. Each property runs on its own track.
Pivot at any point
Rotation and scale act about an anchor placed freely, or fixed to a corner, edge or center of another layer.
Easing per transition
Bezier curves set by hand, standard presets, hold, bounce, elastic and spring.
Roving keys
One easing runs through several keys. Inner keys take their time from the span, and speed holds through them.
Path editing
Anchors, handles and pen, after the manner of the standard illustration programs.
Shape morphs
A path keyed at several times changes form between them.
Group work
Several layers moved, scaled and turned as one. Smart guides for alignment.
Repeats
A track plays its keys again after the last one: cycle, ping-pong or continue, to the end or a set number of passes.
Onion skins
Neighboring poses drawn as tinted ghosts, by keyframe or every few frames.
True preview
The editor drives the very CSS properties the export writes. What is seen on the sheet is what is shipped.
Clean delivery
One .svg file for any site, or a Svelte 5 component. Names are prefixed, so many drawings may share a page.
Lettering
Text in any face on the machine, a bundled face or a font file, set as paths. Split by line or letter, and each moves on its own.
Folder and Wall
Signed in, every drawing is filed as you work. Post one to the Wall for others to see, like and remark upon.
Sec. 3

Procedure

  1. 01

    Receive the drawing. Drop an .svg file on the page, paste markup with CommandV, or press Import. Each top-level shape or group becomes a layer. A group may be broken into its parts with Divide, in the inspector.

  2. 02

    Set the pivot. Select a layer and drag its ⊕ anchor to the point about which it shall turn. The anchor snaps to the corners, edges and centers of every layer.

  3. 03

    Record keyframes. Auto-key is on from the start. Move the playhead and alter the layer. Each change is recorded as a keyframe at that time. The ◆ control in the inspector adds or removes a key outright.

  4. 04

    Fix the easing. Select a keyframe. Its easing governs the passage to the next key. Drag the curve handles or choose a preset.

  5. 05

    Proof the motion. Space runs the animation. Left arrow and Right arrow step between keyframe times. Up arrow and Down arrow step single frames.

  6. 06

    Deliver. Export writes an .svg file or a Svelte 5 component. Save file, in the Folder, writes a .svganim.json project for later work.

Sec. 4

Easing

Every keyframe carries the easing of the motion leaving it. The last key of a track has none. Set default fixes an easing for every key made afterward.

Bezier
Exported as CSS cubic-bezier(). Handles may overshoot, for anticipation and recoil.
Hold
The value stands until the next key, then jumps. Exported as steps(1, end).
Roving keys
Select an inner key and press R. Its time is then derived: the easing of the fixed key before it runs on to the next fixed key, and the roving key is placed by its share of the distance, so the motion passes through without slowing. Press R again to fix it in time; the motion is kept as it stands. On export the span is cut into plain keyframes at the exact points, so the CSS replays it faithfully.
Bounce, elastic, spring
No single Bezier describes these. They are exported as CSS linear(), a polyline held within 0.15 percent of the true curve, with a cubic-bezier() fallback for older browsers.
P1P2TIME →10PROGRESS →
Fig. 2. Easing cubic-bezier(0.65, 0, 0.35, 1). Handles P1 and P2 govern the rate.
Sec. 5

Path Editing and Morphs

Double-click a shape, or select it and press Enter, to edit its path. Rectangles, circles, ellipses, lines and polygons are converted to paths on entry.

  • Drag an anchor to move it. Drag a handle to shape the curve. Option breaks a smooth handle.
  • Click the outline to add an anchor. Option-click or double-click an anchor to switch it between corner and smooth.
  • Shift while dragging locks anchors to an axis, and handles to 45° steps.
  • Drag across empty space to box anchors. Hold Option to swing the box about its first corner; it clings to the path’s own axes, and Shift steps it by 15°.
  • Delete deletes the selected anchors. Option and the arrow keys nudge them.
  • The pen (P) draws a new path. Click for corners, drag for curves, Enter to finish.

With auto-key on, a path edited at the playhead records a shape keyframe. Between two shape keyframes the path morphs. Anchors added or deleted apply to every keyframe of that path, so its forms always correspond point for point.

Morphs are delivered as SVG <animate> on the path’s d attribute. Safari does not animate the CSS d property; <animate> runs in every browser, inside <img> as well.

Sec. 6

Delivery and Installation

Export writes one self-contained .svg file, its keyframes in a <style> block within. No script, no library, no build step. It serves on any site, by either of two methods.

As an image

The plainest method. Upload the file with the site’s other images and place it as any image is placed. It plays on its own and caches like one.

<img src="/gear.svg" alt="Gear" width="240" height="240">

Inline

Paste the file’s contents into the page. Required for hover and manual playback, and to style the drawing from the page’s own CSS.

<!-- the contents of gear.svg, pasted into the page -->
<div class="gear">
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 320">
    …
  </svg>
</div>

Under manual playback the drawing holds until the custom property --sa-play is set to running on it or any parent. One line of script, or a CSS rule, does it.

<script>
  // start it on a click, a scroll observer, anything
  document.querySelector('.gear').style.setProperty('--sa-play', 'running');
</script>

In a framework

  • React: an image tag, or the file’s text inline through dangerouslySetInnerHTML.
  • Vue: an image tag, or the file’s text through v-html.
  • Svelte: an image tag, {@html} with a ?raw import, or the component form below.
  • WordPress, Webflow and builders: upload the .svg and place it as an image.

Svelte 5 component

Export can also write the drawing as a .svelte file. It takes a playing prop and passes class and all other attributes through to the svg.

<script>
  import Gear from '$lib/Gear.svelte';
  let playing = $state(true);
</script>

<Gear class="w-48" {playing} />

Options

  • Repeat. A set count, or forever.
  • Direction. Forward, or ping-pong.
  • Playback. Autoplay, on hover, or manual. Manual playback holds until the custom property --sa-play is set to running on the svg or a parent.
  • Reduced motion. Under prefers-reduced-motion the drawing freezes at the first frame, freezes at the end, or ignores the preference, as chosen.
Sec. 7

Specifications

Animated propertiesPosition, scale X and Y, rotation, opacity, fill, stroke, stroke width, draw-on, path shape
Easingcubic-bezier, presets, hold, bounce, elastic, spring, roving spans
RepeatsPer track: cycle, ping-pong, continue. To the end of the timeline or 2 to 999 passes.
DeliverySVG with embedded CSS. Svelte 5 component.
RuntimeNone. CSS animations; SVG <animate> for morphs.
BrowsersCurrent Chrome, Edge, Firefox and Safari
Accepted input.svg drawings and .svganim.json projects, 15 MB each at most
SanitationAllowlist. Scripts, event handlers, foreign content and outside references are stripped on receipt.
Timeline0.1 s to 10 min. 1 to 240 frames per second.
Sheet size1 to 20,000 units a side
Path capacity500 subpaths and 20,000 anchors per path
StorageIn the browser. Signed in, the folder besides. Project files on demand.
PriceNone
Sec. 8

Questions Commonly Put

Is SVGANIM free?

Yes. No fee, no watermark. An account is needed only for the folder and the Wall.

Does the exported animation require a JavaScript library?

No. The SVG runs on CSS keyframes, and path morphs on SVG’s own <animate> element. The Svelte component carries a few lines of its own and nothing more.

How does SVGANIM compare with Lottie?

Lottie delivers JSON played by a JavaScript player of considerable weight. SVGANIM delivers SVG and CSS that the browser plays natively, and that search engines and screen readers read as ordinary markup. Lottie files are not imported.

Are my drawings uploaded anywhere?

Signed out, no: nothing leaves the machine. Signed in, each drawing is filed in your folder as you work, seen by you alone. The Wall shows only what you post to it.

Which SVG files are accepted?

Output of Illustrator, Figma and Inkscape, icon sets, and hand-written markup. Style rules are folded into attributes. Gradients, masks, clip paths, patterns and filters are kept.

Can a shape change form, as in a morph?

Yes. Edit its path at two or more times with auto-key on. The path morphs between the recorded forms.

Does the export respect reduced motion?

Yes. Under prefers-reduced-motion the drawing freezes at the first frame or at the end, or plays regardless, as chosen at export.

Which sites can use the export?

Any. The .svg file is plain SVG and CSS: plain HTML, React, Vue, Astro, WordPress, Webflow, anywhere an image or inline SVG serves. A Svelte 5 component is offered besides.

Can several animations share one page?

Yes. Every class and keyframe name carries the export name as prefix, so no two drawings collide.

Can one part repeat while the rest plays once?

Yes. Key one pass on a track, then set its repeat on the timeline row. A ball keyed top to floor with ping-pong bounces to the end of the timeline; the fall’s curve plays mirrored on the way up. Continue adds each pass’s change, for an endless spin.

Is my work saved?

Always in the browser. Signed in, also in your folder, at hand on any machine. Save writes a .svganim.json file besides.

How do I sign in?

By email or Google. The letter carries a six-digit code and a link; either serves. No password is kept.

Sec. 9

Correspondence

Faults, proposals and remarks are read. A reply address is optional and used only to answer.