How to set up Anime.js


>




 📌 You can set up Anime.js by downloading the library directly, installing it with an npm command, or via a CDN.

If you are downloading the library from the Anime.js website, include the Anime.js JavaScript file in your HTML code, like so:

<script src="path/to/anime.min.js"></script>

The Node Package Manager (npm) is another option. If you use npm, the script will be located in node modules/animejs/lib/anime.min.js. See the install command below:

$ npm install animejs --save

Another option is to utilize the most recent release of the library provided on a CDN:

<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>

Once you have the library set up, you can start using it in your project right away.
Let’s explore how to do so by applying animations to an example website.