Idea: TOC element with scrollspy

Hi,
For the TOC element it will be great to have a scrollspy feature like this website https://izi-by-edf.fr/blog/plinthe-chauffante/ see on desktop on left sidebar.
Thanks.

What do you think about this idea?