- Home
- YouTube summaries
- AI motion graphics
- Guide 3 of 8
How to make motion graphics with AIGuide 3 of 8
Claude motion graphics tutorial: a new kind of video
Learn how to generate dynamic, code-driven animations and motion graphics using Claude and JavaScript, complete with sound effects and voiceover synchronization.
In 30 seconds
- Claude can generate motion graphics entirely through raw JavaScript code without standard text-to-video diffusion models.
- The method requires no complex third-party animation frameworks like Remotion or HyperFrames.
- Animations can include programmatically created sound effects and full synchronization with timestamped voiceover audio.
- A free library containing dozens of distinct visual styles is available to jumpstart project prompts.
- Using source code directly within the AI prompt ensures much tighter visual consistency across generated frames.
0:00Intro
A Different Approach to AI Video Creation
0:00 to 0:36 in the video, under a minute
Traditional artificial intelligence video generators rely on heavy diffusion models that often produce unnatural, overly recognizable AI artifacts. A novel alternative involves using Claude to construct videos entirely through code. Instead of producing video files directly, Claude outputs pure JavaScript that draws every frame individually right inside the browser.
This method avoids the traditional AI look and is particularly well-suited for motion graphics, visual explainers, and educational video segments. It was inspired by creative experiments showing intricate animations, such as biological lifecycle simulations, generated purely from underlying code instructions.
Framework-Free Code Animation
0:37 to 2:05 in the video, about 1 minute
In typical programmatic animation setups, creators rely on complex toolkits such as Remotion or HyperFrames, which demand installation via package managers and distinct structural rules. This new technique dispenses with these frameworks entirely.
Claude produces straightforward, standard JavaScript that taps directly into browser rendering capabilities. Because the animation is code, adjusting timing, changing colors, altering graphical elements, or modifying shapes can be done rapidly through simple conversational requests to the AI.
The Style Atlas and Preset Designs
2:06 to 3:45 in the video, about 2 minutes
To make this approach accessible, a free catalog known as the AI Style Atlas provides dozens of premade animation styles. Each style features sample clips demonstrating an explainer concept alongside the exact prompts needed to replicate the aesthetic.
Styles range from minimal and clean presentations to intricate artistic styles, such as chalkboard lessons, cut-paper dioramas, glassmorphism user interfaces, 16-bit retro pixel art, and math-focused animated diagrams. Each design also includes programmatic sound effects written directly into the code.
Generating Animations Without Voiceover
3:46 to 6:27 in the video, about 3 minutes
Generating a standalone visual animation begins by selecting an aesthetic from the directory and defining the educational topic. By default, the workflow can produce a storyboard phase, outlining key visual beats before assembling the final animated timeline.
Once approved, Claude renders the complete, interactive animation player. Users can pause, scrub through the timeline, and request targeted code tweaks to fix specific moments or adjust visual pacing. While powerful in Claude Opus, similar code generation also functions well in models like Claude Sonnet and ChatGPT.
Understanding the Source Code Prompt
6:28 to 7:34 in the video, about 1 minute
The prompts copied from the Style Atlas are unusually large because they contain the actual underlying JavaScript from reference examples. Rather than asking the AI to guess visual parameters from still images, passing the actual rendering code ensures strict stylistic fidelity.
AI models struggle to translate raw video into code-level layout details, but feeding them working reference logic allows them to adapt existing patterns while preserving exact typography, motion easing, and visual elements. Once a customized aesthetic is perfected, it can be saved as an AI skill or reusable prompt.
Synchronizing Visuals with a Voiceover
7:35 to 11:18 in the video, about 4 minutes
The system also supports voice-guided explainer content. Creators can generate voiceover audio using text-to-speech tools such as Gemini Flash TTS, ElevenLabs, or personal voice recordings. The audio is then paired with a timestamped transcript.
By providing Claude with a word-level SRT file, the model assigns specific animation cues to exact timestamps. Once the code finishes generating, dropping the audio track into the interactive player results in a fully timed, animated presentation that aligns with the narration.
- Generate voiceover audio through text-to-speech platforms or personal microphones.
- Extract word-by-word SRT transcript timestamps using transcription tools.
- Paste the transcript into the generation prompt so Claude can time animated transitions to key spoken words.
- Load or drag the audio file directly into the rendered browser player for final playback.
Final Thoughts
Using pure JavaScript via Claude introduces a practical and highly editable pathway for producing explainer content without the typical hallmarks of generative AI. By bypassing heavyweight video generation engines in favor of lightweight code, creators can achieve crisp vector visuals and precise motion timing.
Whether used for educational YouTube content, scientific explainers, or UI walkthroughs, starting with established code presets streamlines the process from a raw prompt to a fully voiced presentation.
Do this yourself
Record the voiceover before Claude animates
The video shows Claude building the animation as code, with or without a voiceover. If you want narration, write the script and generate the voiceover first, so the animation can be timed to it.
Also on Oakgen: Music generator, Oakgen MCP.
Generate a voiceoverQuestions
Does this technique require external animation packages like Remotion?
No, it uses pure, vanilla JavaScript that executes natively in any web browser without extra packages or installations.
Can models other than Claude Opus generate these videos?
Yes, models like Claude Sonnet and ChatGPT can also generate workable code animations using the same reference prompts.
How are sound effects generated?
The sound effects are synthesized programmatically using JavaScript audio code embedded directly within the generated script.
This is a summary of a public video by Futurepedia. The method and the demo are theirs: watch the original. Oakgen wrote the summary.





