cycle-animation-driver
A Cycle driver for requestAnimationFrame
Installation
npm install cycle-animation-driver --save
Usage
cycle-animation-driver
uses requestAnimationFrame to provide an Observable stream of timestamps, as fast and smooth as the browser will allow. You can access both the current time with timestamp
, and also the delta
(difference since last update).
;;; { return DOM: animation } const drivers = DOM: animation: ;
Example
Check out the live example at widdersh.in/cycle-animation-driver.
The source code for that example can be found here.