Sulat.com / Writing on AIThursday, December 3, 2026
Enter →
Agent Engineering/3 December 2026

Anime.js v5’s visual editor, run with Codex

Anime.js v5 adds a visual editor that saves its changes back into your code. I installed it, ran Codex through sixteen builds with and without its agent rules, and recorded two Codex sessions.

3D Anime.js logo beside a glowing animation timeline with keyframes, illustrating the Anime.js v5 visual editor
Illustration: Sulat, featuring the Anime.js logo

At a glance

  • Anime.js v5.0.0 adds a visual editor that finds the animations in your code, shows them on a timeline in the browser and saves your edits back into the source file.
  • Setup is one command, npx @animatorkit/editor, and it also writes a block into AGENTS.md that points coding agents at the editor's rules.
  • In sixteen Codex runs, all eight with that block gave every animation an id the editor can list, and none of the eight without it did, with valid v5 code both ways.
  • The editor is free for commercial projects but can't be built into a product or service that's sold, and the stagger, random and onScroll editors sit in the paid Editor Kit.
  • Garnier wrote in July that he'd lost 95% of his funding and would put some v5 features behind a paid plan.

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 bundledv4.5.0v5.0.0
animate() only12.2 KB13.9 KB
Everything exported40.6 KB45.6 KB
Gzipped size of a bundle built from each version.

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.

Tuning the Orbit intro timeline in the editor and saving it.

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:

Code
-    duration: 730,
+    duration: 1100,
...
-  }, 460);
+  }, 700);
Anime.js editor showing the Orbit intro timeline with Feature reveal selected and time position set to 700
Editing the Feature reveal start time in the editor’s timeline.

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.

Two columns: the agent creates animations and timelines; you tune durations, eases and keyframes in the editor
The editor tunes animations, and only the agent creates them.

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 building the Orbit page, uncut and at real speed. The poster is the closing summary.

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.

Orbit launch page built by Codex, open in the Anime.js editor with the Badge pulse animation's keyframes
The Orbit page Codex built, with its Badge pulse listed in the editor.

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 adding a privacy card after the timings were saved from the editor.

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.

Four-step loop: Codex writes with ids, you tune by eye, save writes to main.js, Codex reads your values
The agent and the editor take turns on the same file.

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

SetupRunsEvery call has an idValid v5 codeBuildsClosing message names Editor Kit
Editor scaffold88886
Plain scaffold80880
A smoke test: four tasks, two runs each, in each setup.
Comparison: 8 of 8 runs listed in the editor with the rules block, 0 of 8 without it
The AGENTS.md block is what put Codex’s animations into the editor.

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:

ToolVisual editingWriting changes to codePaid part
Anime.js editorFreeFree, saved by the editorEditor Kit: stagger, random, onScroll, spring, steps and irregular editors, transform gizmo
Motion StudioFreeNeeds Motion+Motion+ for Apply to code, Motion Cloud for the Ultramotion editing agent
Free and paid lines in the two editors, from each project’s own pages.

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

  1. In a Vite project with animejs 5 installed, run npx @animatorkit/editor.
  2. Make sure your page has a <head> and a <title>.
  3. Start Codex in the folder and ask for an animation. It reads the new AGENTS.md block on its own.
  4. Run npm run dev yourself, open the page, tune the timings in the editor and press SAVE.
  5. 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:

Code
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:

Code
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:

Code
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:

Code
<!-- 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.