Platinum sponsors

Workflow

Write your animations in code, tune them in the editor, and save the result back to your files.

Your source code is the single source of truth. The editor keeps no separate project file.

The loop

The Anime.js editor docked around the Anime.js v5 logo, with the letters pop animation selected
  1. You write an animation, a timeline or a layout in your code and give it an id.
  2. The page runs, and the editor lists every call that carries an id.
  3. You select it, then change values, eases and timing in the editor window, on the timeline, or with the transform gizmo. The page updates while you work.
  4. You press SAVE or Cmd + S. The editor rewrites the edited values in your source file and keeps the rest of the file as it was.
  5. You or your build reload the page, and the animation now runs from the new code.
The Anime.js editor Objects list with a setter, an animation and a timeline
The editor lists every call that has an id
The Anime.js editor save bar with the SAVE and REVERT buttons
SAVE writes your edits into your code

An edit you make directly in your code also shows up in the editor after the page reloads, so you can switch between your code editor and the visual editor at any time. Your unsaved changes stay in the editor after a reload.

What the editor can change

  • Values and parameters: numbers, units, colors, eases, durations, delays, loops and the other parameters of each call, including the ones your code leaves to their default value.
  • Timing: the time positions of timeline children, the start and length of segments, and keyframe times.
  • Keyframes: add, move, copy, paste, duplicate and delete them.
  • Properties: add an animated property to an animation, or remove one.
  • Timeline children: delete an animation, set, label, call, sync or timer from a timeline. The save removes its call from your code.

What stays in your code

  • New animations: the editor cannot create an animation, a timeline, a layout, or a new timeline child. Write the call in your code with an id, and the editor picks it up on the next reload.
  • Calls without an id: a call with no id still runs, but it gets no row and nothing to save.
  • Your own functions: function-based values, custom ease functions and callbacks stay as you wrote them. The editor plays them but does not edit them.
Previous
Next