Using generators to control animation flow is genius. Having used Remotion a bit it's heavily dependent on current frame count in complex animations. Generators is a more elegant solution.
A quick Google found that this tutorial shows the technique off a bit: https://www.atmosera.com/blog/jounce-part-15-asynchronous-se...