rafster
v1.0.0
Published
Sharing the "requestAnimationFrame" and "cancelAnimationFrame" methods across different libraries saves animation frames, thereby improving performance.
Downloads
3
Maintainers
Readme
Rafster
Rafster is a simple, fast, and easy-to-use library for combining the requestAnimationFrame
method of multiple third-party libraries into one to improve performance.
Installation
npm install rafster --save
# or
yarn add rafster
Usage
// Import before requestAnimationFrame is called
import 'rafster'
// Import library that uses requestAnimationFrame
import someLib from 'some-lib'