Are you afraid that Your code will use the evil students in the production? And You just not ready to share them? Or what's the problem?
Sobsno the idea is simple: for the duration of the animation, disable actions with a slider.
There is a slider it has 3 events: left arrow, right arrow and the timer. Well, delete themEventTarget.removeEventListener()
and the timer clearTimeout() clearInterval()