Platinum sponsors

Docked mode

Give the editor its own space beside your website.

Your website runs in a frame and the editor docks around it, so the editor windows don't cover what you animate. Drag the edges between the parts to resize them.

The Anime.js editor in docked mode, with the menu strip at the left, the editor window at the right and the timeline below

The editor opens docked when the docked mode script tag is on the page. The Vite plugin adds it for you. Without Vite, add the tag described in Installation.

The pane button, in the editor window and in the timeline controls, moves the editor window between the right edge and the space next to your website. Next to your website, it leaves the full width to the timeline.

Floating mode

The dock button in the menu strip switches between docked and floating mode. The browser tab remembers your choice.

The Anime.js editor in floating mode, with its windows over the page

Without the docked mode script tag, the dock button is disabled.

To open the editor floating while the dock button keeps working, pass docked: false to the Vite plugin:

plugins: [editor({ docked: false })],

Without Vite, add the data-tweaks-floating attribute to the docked mode script tag:

<script src="http://localhost:7348/__tweaks__/iframe.js" data-tweaks-floating></script>

Reloads

With Vite, a save reloads only your website. The editor and its layout stay in place, and the scroll position of your website is kept.

Previous
Next