anime. js code example
Example 1: animejs
// In your terminal:
$ yarn add animejs // or npm install animejs --save
// In your js file
import anime from 'animejs/lib/anime.es.js';
anime({
targets: '#your-css-selector',
width: '100%', // -> from '28px' to '100%',
easing: 'easeInOutQuad',
direction: 'alternate',
duration: 3000,
loop: true
});
Example 2: anime.js
import anime from 'animejs/lib/anime.es.js';