anmie js code example
Example: 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
});