# Using Generators to Animate FTW!

**URL:** <https://forum.kirupa.com/t/using-generators-to-animate-ftw/642960>\
**Category:** random\
**Created:** [May 24, 2020, 5:20am UTC](https://forum.kirupa.com/t/using-generators-to-animate-ftw/642960 "2020-05-24T05:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [May 24, 2020, 5:20am UTC](https://forum.kirupa.com/t/using-generators-to-animate-ftw/642960/1 "2020-05-24T05:20:33Z")

</div>

[The latest tip](http://forum.kirupa.com/t/javascript-tip-of-the-day-100-using-generators-to-animate/641803/117) by @senocular around using generators to animate the sorts of things you could never animate has solved a problem that has been bugging me for several years. I had been unsuccessfully trying to animate the [Towers of Hanoi](https://www.kirupa.com/html5/tower_of_hanoi_puzzle.htm) example for quite some time. Because JS doesn’t have a blocking pause like Node does, the animation would always run with too many disks moving at the same time. By using this generator approach, I’m close to solving it 😛
