Installation
Animatry is open source. You can download the full source code directly if you prefer a manual setup:
Install via NPM
The recommended way to use Animatry is via npm:
npm install animatry
Then import it in your project:
import { animatry } from 'animatry'
Use via CDN
You can also include Animatry via CDN if you're not using a bundler:To keep the bundle size low, you need to import these 4 packages. This makes it possible to use plugins standalone without importing the entire base library.
<script src="https://cdn.jsdelivr.net/npm/animatry@latest/dist/umd/core.min.js"></script><script src="https://cdn.jsdelivr.net/npm/animatry@latest/dist/umd/metrics.min.js"></script><script src="https://cdn.jsdelivr.net/npm/animatry@latest/dist/umd/easing.min.js"></script><script src="https://cdn.jsdelivr.net/npm/animatry@latest/dist/umd/animatry.min.js"></script>
But keep in mind that due to tree-shaking you will need to add EVERY PLUGIN seperately.