anime.min.js code example

Example 1: anime js link

<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha512-z4OUqw38qNLpn1libAN9BsoDx6nbNFio5lA6CuTp9NlK83b89hgyCVq+N5FdBJptINztxn1Z3SaKSKUS5UP60Q==" crossorigin="anonymous"></script>

Example 2: animejs reduce the speed

anime({
  targets: '#thread',
  width: '100%', // -> from '28px' to '100%',
  easing: 'easeInOutQuad',
  direction: 'alternate',
  duration: 500,
  loop: true
});

Example 3: anime.js

$ npm install animejs --save

Example 4: anime.js

import anime from 'animejs/lib/anime.es.js';

Example 5: anime.js

const anime = require('animejs');

Tags:

Html Example