I designed this simple graph including the timing. I also wrote the JavaScript (a painstaking process for me).

Shout out to Ben De Cock who inspired me to use requestAnimationFrame for the animation.