RAFManager - a simple requestAnimationFrame animation manager
Features
RAFManager is a simple requestAnimationFrame animation manager. With RAFManager you can control the addition/deletion animations globally with precision.
The important thing is that it has only a few dozen lines of code, and the size is so small that you can ignore it.
Usage
Use directly in the page
Or install using npm
npm install raf-manager --save ... ;
API:
// add animation func -- auto startRAFManager; // remove animation func -- auto stopRAFManager; // start and stopRAFManagerstart;RAFManager;
Usage demo:
RAFManager;
Build
Node is a dependency, use terminal to install it with npm:
npm installnpm run build
es6 lint
npm run lint
License
LicenseFinder is released under the MIT License. http://www.opensource.org/licenses/mit-license