animejs

Solutions on MaxInterview for animejs by the best coders in the world

showing results for - "animejs"
Chaima
28 Feb 2016
1// In your terminal:
2$ yarn add animejs // or npm install animejs --save
3
4// In your js file
5import anime from 'animejs/lib/anime.es.js';
6
7anime({
8  targets: '#your-css-selector',
9  width: '100%', // -> from '28px' to '100%',
10  easing: 'easeInOutQuad',
11  direction: 'alternate',
12  duration: 3000,
13  loop: true
14});