Skip to content
/ rafster Public

Sharing the "requestAnimationFrame" and "cancelAnimationFrame" methods across different libraries saves animation frames, thereby improving performance.

Notifications You must be signed in to change notification settings

kiccer/rafster

Repository files navigation

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'

About

Sharing the "requestAnimationFrame" and "cancelAnimationFrame" methods across different libraries saves animation frames, thereby improving performance.

Resources

Stars

Watchers

Forks

Packages

No packages published