Code Animation — Drop a file. AI writes the animation.
Give us a source file, or just describe what to explain. AI writes the steps, captions and highlights, then you get a smooth 60 fps MP4.
- AI writes the steps
- Describe it or drop a file
- 60 fps MP4, 16:9 and 9:16
Your code
Public gist and GitHub file links load automatically when you paste them.
Sign in to animate. Uses credits; failed runs are free.
Example: Run work after the response with after() (Next.js)
0:00 / 0:00
Format
Style
Captions
This is a sample. Animate with AI to make one from your file, then download the MP4 when it is ready.
How to animate code
- Drop a file, paste your code, or paste a public GitHub gist or file link. Or switch to Describe it and type what the video should explain, like "explain JavaScript closures".
- Pick 16:9 or 9:16 and a style, then click Animate with AI. It writes the steps, captions and highlights (and the code, in Describe it).
- The preview plays, and the MP4 is rendered on your device. When it is ready, click Download MP4. Open Edit steps if you want to tweak anything, or write the steps yourself — that part is free.
Questions
- Is the code animation maker free?
- Previewing a sample, writing or tweaking steps yourself, and exporting the MP4 all run in your browser, with no watermark and no sign-in. Animate with AI starts from 25 credits, and failed runs are free.
- How does Animate with AI work?
- You drop a file, paste code, or paste a public GitHub gist. AI writes a short sequence of code states with captions, highlights, focus, zoom and callouts that build up to your finished file. The preview plays in your browser. When the MP4 is ready, click Download MP4. You can open Edit steps to tweak the result.
- Can AI make a code animation from just a description?
- Yes. Switch to Describe it and type what the video should explain, like "explain JavaScript closures" or "show how to debounce in React". AI writes short, working code step by step with captions and highlights, and the code is checked before you get it. It uses the same credits as Animate with AI, and failed runs are free.
- How does the morph between steps work?
- Each step is tokenised with Shiki, and tokens that stay the same slide to their new place, including indent shifts. Before a change, the lines about to change are highlighted. New code fades in with its new words highlighted, and a short caption under the code explains what changed. The MP4 is rendered at a constant 60 fps.
- Which languages and themes are supported?
- TypeScript, JavaScript, TSX, Python, Go, Rust, Java, Kotlin, Swift, C, C++, C#, PHP, Ruby, Dart, SQL, shell, HTML, CSS, JSON, YAML and diffs, with eight editor themes including GitHub, One Dark Pro, Tokyo Night and Dracula. Auto picks a theme that suits the code.
- Is my code uploaded anywhere?
- Your code stays in your browser until you click Animate with AI. Then the finished file and your optional brief are sent to the AI to write the steps. Loading a gist or GitHub file fetches it straight from GitHub.