Looks like a simple exponential drag/sprint-return simulation using requestAnimationFrame.
Here is AI's implementation. https://jsfiddle.net/z0or7d2y/1/
If they wanted an AI answer, surely they would have asked AI
If they wanted an AI answer, surely they would have asked AI