animation frame
(request|cancel)AnimationFrame analog for the desktop
install
npm install animationframe
use
// setup a contextvar context = /* ... */ var { context;} var manager = new AnimationFrameendOfFrame; var count = 0;var id = manager; // you could cancel the animation frame request like so:// manager.cancelAnimationFrame(id);
license
MIT