1.1.1 • Published 5 years ago

with-raf v1.1.1

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

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.