with-raf

1.1.1 • Public • Published

Higher Order Function for requestAnimationFrame Throttling

Build Status

A simple higher order function to throttle a function by animation frames.

Install

npm -i -D with-raf

API

withRaf(fn, onCall, raf = window.requestAnimationFrame)

Returns: the animation frame-throttled version of fn.

Package Sidebar

Install

npm i with-raf

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

6.55 kB

Total Files

7

Last publish

Collaborators

  • flekschas