It's jarring and confusing, particularly when the next line is many lines away from the current line.
For example, in the animation in the README, when it scrolls to the insertion_sort function implementation, it's not immediately clear what happened.
A possibly better implementation would have some sort of animation showing the scroll to that point and the movement of the highlight to that point.