This module exposes a polyfilled requestAnimationFrame function.
newtype RequestA request for a callback via requestAnimationFrame. You can supply this to
cancelAnimationFrame in order to cancel the request.
requestAnimationFrame_ :: forall a eff. Window -> Eff (dom :: DOM | eff) a -> Eff (dom :: DOM | eff) RequestRequest that the specified action be called on the next animation frame, specifying
the Window object.
requestAnimationFrame :: forall a eff. Eff (dom :: DOM | eff) a -> Eff (dom :: DOM | eff) RequestRequest that the specified action be called on the next animation frame.
requestAnimationFrameWithTime :: forall a eff. (Milliseconds -> Eff (dom :: DOM | eff) a) -> Eff (dom :: DOM | eff) RequestWhen it is time for the next animation frame, callback with the then-current time, and immediately execute the resulting effect.
requestAnimationFrameWithTime_ :: forall a eff. Window -> (Milliseconds -> Eff (dom :: DOM | eff) a) -> Eff (dom :: DOM | eff) RequestLike requestAnimationFrameWithTime, but you supply the Window object.
cancelAnimationFrame :: forall eff. Request -> Eff (dom :: DOM | eff) UnitCancel a request.