dauber-duration
Pooled requestedAnimationFrame tool for running multiple short bursts of animation
Usage
dauber(duration, loopfn[, done])
Calls loopfn(t)
every frame for duration
milliseconds, where t
is a value
between 0 and 1 describing the progress through the animation. When complete,
calls done
if passed.
For example, to animate between two values over 500 millisconds:
var animate =
License
MIT. See LICENSE.md for details.