rafy
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rafy

A RAF js engine

Install

$ npm install rafy

Usage

import Rafy from 'rafy';

const rafy = new Rafy();

const fn = () => {
  console.log('It will perform the function on each frame');
};

// Add function to queue
rafy.add(fn);

// Start rafy
rafy.start();

// Remove function from queue
rafy.remove(fn);

// Stop rafy
rafy.stop()

Package Sidebar

Install

npm i rafy

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

13.9 kB

Total Files

9

Last publish

Collaborators

  • svetli