1.1.0 • Published 7 years ago

most-request-animation-frame v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

most-request-animation-frame -- 1.0.0

Create streams that emits every requestAnimationFrame

Get it

yarn add most-request-animation-frame
# or
npm install --save most-request-animation-frame

API Documentation

All functions are curried!

requestAnimationFrames(): Stream\<Time>

Creates a Stream containing the timestamps on each call to requestAnimationFrame.

export function requestAnimationFrames(): Stream<Time> {
  return multicast(new RequestAnimationFrame())
}