March 8, 2019

161 words 1 min read

juliangarnier/anime

juliangarnier/anime

JavaScript animation engine

repo name juliangarnier/anime
repo link https://github.com/juliangarnier/anime
homepage https://animejs.com
language JavaScript
size (curr.) 47756 kB
stars (curr.) 34290
created 2016-03-13
license MIT License

Getting started

Download

Via npm

$ npm install animejs --save

or manual download.

Usage

ES6 modules

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

CommonJS

const anime = require('animejs');

File include

Link anime.min.js in your HTML :

<script src="anime.min.js"></script>

Hello world

anime({
  targets: 'div',
  translateX: 250,
  rotate: '1turn',
  backgroundColor: '#FFF',
  duration: 800
});

Documentation

Demos and examples

Browser support

Chrome Safari IE / Edge Firefox Opera
24+ 8+ 11+ 32+ 15+

Website | Documentation | Demos and examples | MIT License | © 2019 Julian Garnier.

comments powered by Disqus