Platinum sponsors

What you can edit

Every Anime.js call the editor recognizes, and how to name it.

The editor lists each supported call that carries an id in its Objects list, grouped in the Setters, Animations, Timelines and Layouts folders.

The Anime.js editor Objects list with a setter, an animation and a timeline
Call Folder Notes
animate(targets, { id, ... }) Animations Every parameter and animated property
utils.set(targets, { id, ... }) Setters Every property it sets
createTimeline({ id, ... }) Timelines The timeline parameters and each child with an id
createLayout(root, { id, ... }) Layouts The layout parameters and its states
layout.animate({ id, ... }) Layouts Its parameters and states, under its layout
layout.update(callback, { id, ... }) Layouts Its parameters and states, under its layout

Timeline children

Each child of a timeline needs its own id too. Calls and syncs use their object form so they can carry one, and a label uses its name:

const intro = createTimeline({ id: 'Hero intro' });

intro.add('.title', { id: 'Title reveal', opacity: [0, 1] }, 0);
intro.set('.card', { id: 'Cards reset', y: 40 }, 0);
intro.add({ id: 'Wait', duration: 300 }, '+=100');
intro.call({ id: 'Start video', callback: startVideo }, 800);
intro.sync({ id: 'Linked loop', target: loopAnimation }, 800);
intro.label('Cards in', 1000);
intro.init();

The short forms call(callback, position) and sync(target, position) still play, but they get no row in the editor.

Values

Targets

The editor edits every target Anime.js can animate: HTML and SVG elements, JavaScript objects that drive a canvas or a WebGL scene, and Three.js objects animated through the Three.js adapter. See Three.js scenes for the Three.js setup.

Not editable

Previous
Next