Inspiration
Most animation tools ask you to pick a library first — then you fight timelines and keyframes. Director does the opposite: it reads your script before it touches a pixel.
What it does
Director is an AI animation director: paste a script or marketing copy, it splits it into scenes, casts each scene to the right animation library from 18 learned libraries (Anime.js for kinetic type, Motion Canvas for diagrams, Manim for formulas, Three.js for spatial scenes, Proton for particles), shows its reasoning and rejected alternatives, generates the animation code, and plays a live preview with pacing controls. Built for SLAY HACKS 2026.
Try it live: https://jinhan914.github.io/ai-animation-director/
How I built it
Director is a single-file web app (index.html) built with vanilla JavaScript and HTML5 Canvas. Its casting rules come from a systematic study of 18 free, open-source animation and video libraries, so each scene is matched to the library that fits what the scene actually is — words, data, a formula, a spatial scene, or pure energy — not what is fashionable. Every choice comes with a plain-language reason and the alternatives that were rejected.
Challenges I ran into
The hardest part was making the casting explainable: a good choice is only useful if you can see why it was made and what was turned down. I also had to keep the whole preview running live in the browser, with pacing controls and a scrubbable timeline, without a render queue or an account.
What I learned
Different animation libraries are not interchangeable — each one is the right answer for a different kind of scene. The director's job is matching the scene to the tool, and showing its work.
Links
- Live demo: https://jinhan914.github.io/ai-animation-director/
- GitHub repo: https://github.com/jinhan914/ai-animation-director
Built With
- anime.js
- canvas
- html5
- javascript
- manim
- motion
- proton
- three.js