Anime.js v5.0.0 is out, and the release is a visual editor. It finds the animations in your code, shows them as controls and a timeline in the browser, and writes your edits back into the source file. I installed it, tuned a timeline in it, and ran Codex through sixteen builds with and without the editor’s agent rules to see whether an agent’s animations show up in it. They did in all eight runs with the rules and in none of the eight without. I also recorded two Codex sessions and share every prompt below. Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.
What shipped in v5
Julian Garnier released v5.0.0 on 1 December after a year of work. The editor is the headline. Beside it, the release adds muting for whole animations and single properties, a stretch() method that makes a spring settle in a set time, utils.parseColor(), and an optional time argument for engine.update() so you can drive the engine from your own render loop.
It also breaks a few things. duration is now read only on timers, animations and timelines, so code that assigns to it has to use stretch() or be rewritten, and currentTime reads whole milliseconds. The library grew too. I bundled v4.5.0 and v5.0.0 the same way and gzipped the output:
| What I bundled | v4.5.0 | v5.0.0 |
|---|---|---|
| animate() only | 12.2 KB | 13.9 KB |
| Everything exported | 40.6 KB | 45.6 KB |
How the editor works
You run npx @animatorkit/editor in a Vite project. It adds a Vite plugin, an editor.config.json and a block in AGENTS.md. While the dev server runs, the editor appears inside your own page. It lists the animations and timelines it finds, shows each one’s parameters, keyframes and place on a timeline, and a SAVE button writes the change back into the code. There’s no export step. The editor manual describes the agent loop the same way: ask your agent for an animation, tune it in the editor, save, and the agent then works from your values.
In that recording I lengthened the headline animation and moved the feature cards’ start later on the timeline. The save landed in main.js as two changed numbers:
- duration: 730,
+ duration: 1100,
...
- }, 460);
+ }, 700);

The editor only finds animations that carry a literal id, like createTimeline({ id: 'Orbit intro' }). That one rule explains most of what follows. The setup also gives the editor a clear job. It tunes animations that already exist, and it can’t create one.

What I ran in Codex
Everything ran in Codex 0.173.0 on GPT-6.2 Sol, signed in with ChatGPT, in the workspace-write sandbox with connected apps switched off, so no run reached any of my accounts. I used two scaffolds. The editor one is a fresh Vite project with animejs 5.0.0 and the editor set up by its own command. The plain one is the same project without the editor package or the AGENTS.md block.
A launch page from one prompt
First I asked Codex for a one-page launch hero for a made-up app called Orbit, in the editor scaffold, and left it alone. The prompt is in the Details block at the end.
Codex worked for one minute 39 seconds. It read the editor’s agent rules first, wrote a page with four animations, gave each a literal id (Orbit intro, Headline rise, Feature reveal and Badge pulse), and ran the build, which passed. Its closing message pointed me at the dev server and the editor, and added that visual tuning of stagger settings needs Editor Kit.

Keeping my timings
Then I tuned the intro timings in the editor, saved, and asked Codex to add a fourth feature card and keep them.
Codex worked for 22 seconds. It added the card to the page markup and left main.js alone. A diff of the file before and after shows no changes, so my saved timings are intact, and the existing .card stagger picks the new card up.

Sixteen runs, with and without the rules
For the eval I gave Codex four small tasks, an intro sequence, a grid of cards, a modal and a port of an old v3 animation, in both scaffolds, twice each. That’s two runs per cell, so it’s a smoke test. Each run used codex exec with a 900-second limit and a script as the scorer: it parses the code for Anime.js calls and their ids, checks for v3 syntax, builds the project, loads the page in a headless browser for console errors and motion, then opens the editor and looks for each id in its list.
8 of 8
runs with the rules block gave every animation an id the editor listed
0 of 8
runs without it did, because none of them wrote an id
16 of 16
runs wrote valid v5 code that builds, with no console errors
| Setup | Runs | Every call has an id | Valid v5 code | Builds | Closing message names Editor Kit |
|---|---|---|---|---|---|
| Editor scaffold | 8 | 8 | 8 | 8 | 6 |
| Plain scaffold | 8 | 0 | 8 | 8 | 0 |

The plain runs weren’t worse code. Every one used the v5 API and built, and the animations moved on load. They just had no ids, so the editor had nothing to list. The rules block fixed that without changing how Codex wrote the animations. It read node_modules/@animatorkit/editor/docs/agents.md, a long rulebook that asks for a literal id on every call, the editor loaded before any animation code, and stagger() rather than function values for anything that hits several targets.
The port task matters if you have old code. All four ports ran on v5 and matched the legacy animation’s behaviour in my check. In one, Codex noted that v5’s outExpo differs slightly from the legacy easing formula, which is the kind of note you want from a port.
The same rulebook says to tell the user when a Kit feature is in play. That’s why six of the eight editor runs ended with a line saying visual tuning of the stagger needs Editor Kit. The two intro runs didn’t say it.
What’s free, what’s paid and what the licence allows
The editor is free. The paid part is Editor Kit, which the editor page lists as dedicated editors for staggers, random values, onScroll, and spring, steps and irregular eases, plus a transform gizmo for editing elements directly on the page. The Silver, Gold and Platinum sponsor tiers include five, ten and unlimited Kit seats.
The licences differ by package. animejs is MIT. The editor’s licence is proprietary and free for commercial work: you can use it in any number of personal or client projects, and the animations and code you make with it are yours. You can’t modify it, or offer it as a feature of a product or service that’s sold, such as a website builder, a design tool, a CMS or a hosting platform. The tweaks package the editor depends on is licensed as free for non-commercial use, with a clause that another product of Garnier’s governs its use when it runs inside that product. Neither licence names the other.
The money story is Garnier’s own. In July he wrote on Bluesky that he’d lost 95% of his funding in the previous few months, that every corporate sponsor had cancelled since the start of 2026, that 64 individual sponsors were left, and that he’d gate some v5 features behind a paid plan.
Next to Motion Studio and GSAP
The closest peer is Motion Studio, which Matt Perry announced on 22 September. It’s a timeline editor for Motion animations that runs in your dev environment, and it splits free and paid at a different line from Anime.js:
| Tool | Visual editing | Writing changes to code | Paid part |
|---|---|---|---|
| Anime.js editor | Free | Free, saved by the editor | Editor Kit: stagger, random, onScroll, spring, steps and irregular editors, transform gizmo |
| Motion Studio | Free | Needs Motion+ | Motion+ for Apply to code, Motion Cloud for the Ultramotion editing agent |
The agent story differs too. Motion Studio ships its own fast editing agent and can hand the final write to Cursor, Codex or Claude. Anime.js ships no agent. It ships rules, and whatever agent you already use follows them. GSAP, the other big name, has been free for everyone since Webflow made it so on 30 April 2025, but its licence bars use in tools that let people build visual animations without code and compete with Webflow’s own visual animation builder.
Things to know before you try it
- The editor is injected into your page’s
<head>. My first test page had no head element and the editor never appeared. Adding one fixed it. - It needs a running dev server, and Codex’s workspace-write sandbox doesn’t let one listen. Codex can write the animations but can’t open the editor, so the tuning step is yours.
- Ctrl+S doesn’t save while a field has focus. The SAVE button in the save bar does.
- An animation without a literal id is invisible to the editor, however valid the code is.
- The editor is a development tool. The manual has a section on going to production.
Try it
- In a Vite project with
animejs5 installed, runnpx @animatorkit/editor. - Make sure your page has a
<head>and a<title>. - Start Codex in the folder and ask for an animation. It reads the new
AGENTS.mdblock on its own. - Run
npm run devyourself, open the page, tune the timings in the editor and press SAVE. - Ask Codex for a change and tell it you’ve tuned and saved, so it keeps your values.
The exact prompts
The recorded sessions ran in Codex with codex -a never -s workspace-write. First prompt, in the editor scaffold:
Build a one-page launch hero for a fictional app called Orbit. The headline words rise in one after another, three feature cards fade up in sequence, and a small badge pulses. Use Anime.js and make it look good.
Second prompt, after I’d tuned and saved the timings in the editor:
I tuned the intro timings in the editor and saved them. Add a fourth feature card about privacy that reveals the same way as the other three, and keep my timings.
The four eval tasks, each run twice in each scaffold with codex exec -s workspace-write --skip-git-repo-check --json:
Create an intro sequence for a page about a fictional coffee brand called Ember. A round logo mark scales in, then the tagline fades in, then a Shop now button slides up. It plays once when the page loads. Use Anime.js.
Build a grid of six feature cards. On load they fade in and rise into place one after another, and each card lifts slightly when the pointer hovers over it. Use Anime.js.
Build a page with an Open button that shows a modal. The backdrop fades in and the panel springs into place. A Close button plays it in reverse and hides the modal again. Use Anime.js.
legacy.js is an animation written for an old version of Anime.js. Port it to the version installed in this project and load it from the page, keeping the same behaviour.
The block the editor’s setup adds to AGENTS.md:
<!-- BEGIN:animejs-editor-rules -->
Before writing animation code, read node_modules/@animatorkit/editor/docs/agents.md and follow its rules.
<!-- END:animejs-editor-rules -->
The download holds the task folders, the scorer, the results file and the JSON event log of all sixteen runs. I checked it for keys and found none.




