Closed sc0ttj closed 3 years ago
This wrapper around requestAnimationFrame makes it really easy to play and pause any animation loop:
requestAnimationFrame
..this could be used by Component in various ways:
Component
tweenState
render()
NOTE: this may not be useful, and therefore not worth it - have a think about use cases..
..would be useful for an animation editor/designer app - to traverse or scrub through animations..
could have:
.ff()
.rw()
.ff(10)
.rw(10)
go(10)
tweenState can already do this - the tweens it returns have pause methods, and u can pause them at start by default - just document it better.. Closing.
This wrapper around
requestAnimationFrame
makes it really easy to play and pause any animation loop:..this could be used by
Component
in various ways:tweenState
render()
NOTE: this may not be useful, and therefore not worth it - have a think about use cases..
..would be useful for an animation editor/designer app - to traverse or scrub through animations..
could have:
.ff()
,.rw()
,.ff(10)
,.rw(10)
on animations that plays/tweens to desired frame, extra quick (4x normal speed)go(10)
- jumps to desired frame