Basics

Guides

Setup from NPM

Just Animate uses a plugin system to use different animations systems together. You must first install the core library, and then install a plugin such as the Web Animations API. During the startup of your application, you must register the plugins in the order you want them to run.

Installing the Web Animations API

The Web Animations API animates DOM elements from JavaScript. It has similar capabilities to CSS Animations and is supported natively in FireFox and Chrome.

By installing just-animate through NPM, you also have all the files you need to animate using the Web Animation API. You do, however, need to register the plugin. In your startup code, add this to register:

Edge and Safari have not yet implemented the Web Animation API. In the meantime if you need Edge and Safari support, include this polyfill in your page to ensure the Web Animations API works consistently in every browser.