0.0.8 • Published 2 years ago

set-frame-out v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

setFrameout()

Like setTimeout() but with frames instead of milliseconds.

This uses window.requestAnimationFrame() so it only works in the browser.

npm i set-frame-out
import {clearFrameout, setFrameout} from 'set-frame-out';

const id = setFrameout(() => {
  console.log('5 frames have passed!');
}, 5);

clearFrameout(id);
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago