Can Claude Opus 5.5 Make Videos? How Code-Rendered Animation Works

·8 min read·Video made with Claude Opus 5.5

Yes, but not the way a video model does. Claude Opus 5.5 doesn't generate pixels. It writes code that draws every frame, a browser renders those frames one by one, and ffmpeg joins them into an MP4, music included. The 30-second explainer above was made exactly that way, from the prompt below.

The prompt2,347 chars
Make a 30-second explainer animation, written entirely in code, that answers the question "Can Claude make videos?"

THE IDEA
Claude isn't a video model and doesn't generate video pixels. It writes code that draws every frame. A browser renders those frames one by one, ffmpeg joins them into an MP4, and the music is written in code too.

STORY (1920×1080, 30 fps, 30 seconds)
0–4 s: The question "Can Claude make videos?" types itself in the centre of the screen.
4–10 s: A one-line prompt in a text box ("Make a 20-second launch video for my app") flies into a code editor, and lines of code start writing themselves into it. Use real lines from this animation's own source.
10–16 s: The code turns into a row of numbered frames (frame 0, frame 1, frame 2…), each a small thumbnail of the same scene a moment later, with a counter ticking up and the label renderFrame(n).
16–22 s: The frames stack into a film strip and slide into a box labelled "ffmpeg", while a sound wave labelled "music, also code" slides in beside them. Out comes an MP4 file with a play button.
22–30 s: The MP4 plays a quick montage of three different animations (a logo snapping together, a rotating 3D shape and a growing bar chart), then ends on "No video model. Just code." Hold the last frame for a beat.

LOOK
A clean editorial explainer: off-white background, near-black text and one warm orange accent (#E8590C). Big type, thin lines, flat shapes, soft shadows and lots of space. Use a monospace font for code. Don't use any logos; Claude is just the word "Claude". Keep all text large enough to read on a phone.

MOTION
Smooth ease-in-out moves, with every change motivated by the story. The camera glides between scenes rather than cutting. Nothing linear.

MUSIC
Compose a light, curious explainer track in code at 120 BPM, so every bar is 2 seconds and each section above starts on a bar. Add soft key clicks while text types and a gentle whoosh on each move.

OUTPUT
Draw everything in code, with no image files and no audio samples (embedding a font file is fine). Build it as one self-contained HTML file driven by a frame number rather than a real-time clock, so every frame is deterministic. Render every frame with headless Chrome, render the soundtrack to WAV, and encode an H.264 MP4 with AAC audio using ffmpeg. Also export a poster frame as a PNG.

We ran this prompt once, in a fresh Claude Code session with Claude Opus 5.5, and published what came out. We didn’t edit the video or the code.

How it works

  1. You describe the video. The scenes, how long each one lasts, the look, the motion and the music, in plain words.
  2. Claude writes code that draws it. Usually that’s one HTML file with a function that draws any frame you ask for: frame 0, frame 1, frame 450. It can draw with the browser’s canvas or SVG, build 3D scenes with three.js, write shaders, use animation libraries like GSAP and Remotion, or drive Blender.
  3. A browser renders every frame. Claude runs Chrome without a window and saves each frame as an image. Thirty seconds at 30 frames per second is 900 images.
  4. ffmpeg makes the MP4. The frames and the soundtrack go into ffmpeg, a free command-line video tool, and out comes an ordinary video file. The soundtrack is code too: Claude synthesises every drum, chord and click, sample by sample.

The trick that makes it work is drawing each frame from its frame number rather than from a clock. In a browser animation that runs on real time, a slow frame gets skipped or repeated. Here, frame 450 looks exactly the same however long it takes to draw, so the finished video is smooth and can be rendered again identically.

How it’s different from a video model

AI video models such as Sora, Veo and Runway generate the pixels themselves, from your prompt. Code-rendered animation is closer to hiring a motion designer who works in code. That changes what you get:

  • Text comes out sharp and spelled right, because it’s typeset with real fonts rather than generated.
  • Every frame is exact. Colours match their hex codes, a logo looks exactly like the logo, and a chart shows the numbers you gave it.
  • Changes are edits, not re-rolls. “Make the title bigger” changes one line of code, and everything else stays the same.
  • Length and size are just numbers. 4K, vertical for Reels, a 60-second cut or 60 frames per second all work; bigger videos take longer to render.
  • The sound comes with it. Music and sound effects are composed in code and land on the exact frames they belong to.

What it can’t do is film the real world. It draws, so it won’t give you a photorealistic person walking down a street. Stylised 3D, illustration, typography and interface work are where it shines. For live-action looks, use a video model or a camera.

What people make with it

Our directory has 993 videos made by Claude writing code. 556 are motion graphics, 153 are explainers, 140 are 3D and real-time pieces and 144 are games and interactive pieces. Most were drawn with the browser’s canvas (305), SVG (199) or three.js (176). Next come Remotion (96), shaders (96) and GSAP (92), and a few were made in Blender.

The most common kinds are product launch videos, logo animations, explainers like the one above, kinetic typography, data visualisations, music videos and stylised 3D scenes.

What you need

  • Claude Code, or any Claude Opus 5.5 setup that can run commands on your computer.
  • Google Chrome and ffmpeg. On a Mac, brew install ffmpeg covers the second one.
  • Somewhere between 25 minutes and an hour. Our tutorial videos took 26 minutes for a logo animation, 33 for this explainer, 42 for a launch video and 62 for a synthwave piece. Most of that time is Claude checking its own frames and fixing what it finds.

In the Claude apps without a terminal you can still get the HTML file and watch it play in your browser. You just can’t render it to an MP4 there.

How to write a prompt that works

Every prompt in our tutorials follows the same pattern:

  • Give a timeline in seconds. “0–4 s: … 4–10 s: …” makes Claude plan scenes instead of improvising.
  • Describe the look in concrete terms: hex colours, the kind of font and the mood, rather than “make it nice”.
  • Give the camera a job in each scene, so the video never sits still.
  • Pick a tempo that fits your scenes. At 120 BPM a bar is 2 seconds, so 2- and 4-second scenes cut on the beat.
  • Ask for frames driven by a frame number, with any randomness seeded. That’s what makes the render smooth and repeatable.
  • Ask for every file you’ll need: a poster image, a transparent version, a vertical cut.

What Claude built for this video

  • One HTML file of about 1,000 lines, with the Inter and JetBrains Mono fonts embedded and everything drawn on a canvas. The whole video is one long world laid out like the pipeline, and the camera glides along it, zooming as it goes, so there are no cuts.
  • The code in the editor is real. As it plays, the page reads its own source and types out a real function from it, logoScene(). That same function draws every frame thumbnail, the film strip and the first clip in the montage, so the code you watch being written is the code drawing the video.
  • The soundtrack is a separate 376-line script: a 120 BPM piece in F major with a marimba, bells, a pad, bass and light drums. The animation exports a list of its own events, such as every typed character, every frame card and every move, and the music script places a click, a tick or a whoosh on each one.

Claude rendered stills at the key moments and caught a handful of problems on the way: text ghosting as the prompt flew into the editor, a scene that left half the screen empty, and the closing line overlapping the player. It fixed them, then rebuilt everything from scratch and confirmed the frames and the soundtrack came out identical.

What Claude said it would improve

  • It couldn’t hear the music. It balanced the mix from loudness measurements and a spectrogram, and suggested someone listen to the level of the clicks.
  • The smallest text is 25 to 28 pixels tall. That reads fine on a phone held sideways, but it’s small in portrait.
  • Small polish: the “my app” label in the thumbnails is tiny, the ffmpeg box fades in a little grey, and the sound wave is drawn for show rather than from the actual soundtrack.

Questions people ask

Is this the same as Sora or Veo? No. Those are video models that generate pixels. Claude writes a program that draws the video, then renders it.

Can Claude edit footage I already have? Yes. It can cut, caption and score your clips with ffmpeg and code. Our App Store preview tutorial does exactly that with screen recordings.

Does the music need a licence? Claude composes it in code from synthesised sounds, so there’s no stock track or sample in it.

Can I change the video afterwards? Yes. Ask in plain words and Claude edits the code and renders again, which takes a minute or two once the video exists.

Try it yourself

Each of these tutorials comes with its video and the exact prompt that made it:

Below are more explainers from the directory. Most come with the prompt that made them.

More like this in the directory