Blog
Tutorial4 min read

Animate any image with SVG.new and Claude

Coffee cup, animatedNight owl, animatedHot air balloon, animatedLighthouse, animatedRocket launch, animatedGoldfish bowl, animatedWindmill, animatedFerris wheel, animated

Each of these started as a picture and is now a single SVG file with no JavaScript. To make one, trace a picture with SVG.new and tell Claude in a sentence what should move. Claude reads the SVG as text, finds the shapes that make the sails or the steam, and writes the CSS that moves them. How well that goes depends on what the tracer drew underneath each shape.

Stacked or cut out

A trace is a pile of flat shapes, and there are two ways to pile them. Here is the same coffee cup traced both ways, with the same animation on top. The checkerboard shows where the file has nothing.

Coffee cup traced with stacked shapes: the steam and cup move over an unbroken backgroundStacked
Coffee cup traced with cut-out shapes: the steam and cup leave holes behind as they moveCut out

Stacked is SVG.new's default for an opaque picture. The background is a whole square and the cup sits on top, so moving the cup shows more background. Cut out, each shape has holes where the shapes in front of it sit, and nothing hides under anything. That is how Cutting mode traces for vinyl and lasers, and for animation it leaves a hole behind anything that moves.

A shape is drawn whole underneath only when the one on top sits entirely inside it. A windmill sail overlaps sky and tower, and this astronaut stands on sky and ground, so nothing is under them in either mode. Claude paints those gaps in before anything moves, in colors sampled from the picture.

The traced Mars scene with the astronaut lifted away, leaving an astronaut-shaped hole in the groundTrace
The astronaut hopping in place on Mars over ground Claude painted inAnimated SVG

Eight flat pictures

We generated these with OpenAI and Gemini in a flat style, traced each one once and gave Claude one sentence about what should move.

Coffee cup

Three wisps of steam, each rising and fading a third of a cycle after the last.

Coffee cup, the original picturePNG
Coffee cup, traced to SVG by SVG.newSVG
Coffee cup, animated by ClaudeAnimated SVG

Night owl

The picture had no eyelids. Claude drew them in the owl’s brown and blinks them at uneven intervals, once or twice.

Night owl, the original picturePNG
Night owl, traced to SVG by SVG.newSVG
Night owl, animated by ClaudeAnimated SVG

Hot air balloon

The basket swings on its own beat, out of step with the envelope above it.

Hot air balloon, the original picturePNG
Hot air balloon, traced to SVG by SVG.newSVG
Hot air balloon, animated by ClaudeAnimated SVG

Lighthouse

The beam, the stars and three rows of waves each keep their own time, and every timing divides 24 seconds.

Lighthouse, the original picturePNG
Lighthouse, traced to SVG by SVG.newSVG
Lighthouse, animated by ClaudeAnimated SVG

Rocket launch

The flame stretches from the nozzle. The inner flame flickers half a beat after the outer one.

Rocket launch, the original picturePNG
Rocket launch, traced to SVG by SVG.newSVG
Rocket launch, animated by ClaudeAnimated SVG

Goldfish bowl

Four bubbles share one track from the fish’s mouth to the surface and take turns on it.

Goldfish bowl, the original picturePNG
Goldfish bowl, traced to SVG by SVG.newSVG
Goldfish bowl, animated by ClaudeAnimated SVG

Windmill

The sails are a lattice. Claude made the 162 scraps of sky inside them into a mask that turns with them.

Windmill, the original picturePNG
Windmill, traced to SVG by SVG.newSVG
Windmill, animated by ClaudeAnimated SVG

Ferris wheel

Each cab turns back against the wheel as it rides, keeping upright with a slight swing.

Ferris wheel, the original picturePNG
Ferris wheel, traced to SVG by SVG.newSVG
Ferris wheel, animated by ClaudeAnimated SVG

A picture that isn't flat

The same works on a painted picture. This trace was already on this site.

Watercolor pelican

The trace has 1,451 paths of soft washes. Both wheels turn every 1.5 seconds and the pelican bobs twice per turn.

Watercolor pelican, the original picturePNG
Watercolor pelican, traced to SVG by SVG.newSVG
Watercolor pelican, animated by ClaudeAnimated SVG

One step further: Lottie

An animated SVG plays anywhere a web page shows an image. For an iOS or Android app, or to hand the animation to a designer, you want Lottie: a JSON animation format with players for the web, iOS and Android, which opens in LottieFiles. Claude wrote a short script that turns the trace into one. Here the cup draws itself in, then the steam bends as it rises.

Lottie

Download the JSON (93 KB).

Try it

With SVG.new connected to Claude, attach a picture and ask in one message:

Trace the picture I attached with SVG.new, then animate it: the boat rocks on the waves, the waves roll at two speeds and the flag flutters. Keep it one SVG with no JavaScript.

Or convert your picture on the converter and paste the SVG into a chat with Claude. Give moving parts their own color: our first Ferris wheel had a white stand in front of white spokes, the two traced as one shape, and the wheel couldn't turn without the stand.

The eight flat pictures were generated, traced by SVG.new with default settings and animated by Claude on 18 October 2026. The watercolor pelican reuses a trace already on this site.