Skip to content

Callbag listenable source sending DOMHighResTimeStamp at display refresh rate

License

Notifications You must be signed in to change notification settings

aaronshaf/callbag-animation-frames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarn add callbag-animation-frames
const pipe = require("callbag-pipe");
const forEach = require("callbag-for-each");
const animationFrames = require("callbag-animation-frames");

pipe(
  animationFrames,
  forEach(highResTimeStamp => {
    // have fun
  })
);

If you're blessed with the pipeline operator:

animationFrames
  |> forEach(highResTimeStamp => {
    // have fun
  });

Learn more

About

Callbag listenable source sending DOMHighResTimeStamp at display refresh rate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published