A collection of various small utilities.
A collection of various small utilities.
(animation-frame)
Subscription to a single animation frame, emitting the timestamp as an action.
Subscription to a single animation frame, emitting the timestamp as an action.
(animation-frames)
Subscription to the browser's animation frames, continuously emitting the timestamp as actions.
Subscription to the browser's animation frames, continuously emitting the timestamp as actions.
(intersection-change elem options)
Returns a subscription to intersection information for the given
dom element as of the IntersectionObserver API. The options map may
contain the :root
, :root-margin
and :threshold
keys.
Returns a subscription to intersection information for the given dom element as of the IntersectionObserver API. The options map may contain the `:root`, `:root-margin` and `:threshold` keys.
(interval ms & [action])
Subscription to a timer, emitting true
or action
as an action every given milliseconds.
Subscription to a timer, emitting `true` or `action` as an action every given milliseconds.
(timeout ms & [action])
Subscription to a timer, emitting true
or action
as an action once, after the given number of milliseconds.
Subscription to a timer, emitting `true` or `action` as an action once, after the given number of milliseconds.
(visibility-change elem & [options])
Returns a subscription that emits true or false, when the given dom element becomes visible or invisible to the user in the browser window.
Returns a subscription that emits true or false, when the given dom element becomes visible or invisible to the user in the browser window.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close