15 ms·
Maybe it'd be like Elm where you can subscribe to external events, as if you were to do something like this: requestAnimationFrame(() => dispatch('TICK', Date.
by always_good 9y ago
Maybe it'd be like Elm where you can subscribe to external events, as if you were to do something like this:
requestAnimationFrame(() => dispatch('TICK', Date.now() - prevTick))
Then you can feed the offset into view functions which forces a re-render and steps the animation.