Navbar current state effect/animation on other elements

I am creating a cool sidebar, where i used nav links, and when they scroll down, the current state nav link show it’s effect, like changing color and text bold, kind of.

what my requirement is to change color of the other element, or give interaction to other element when the navlink is on current state

you can check from the link that, when user scroll, whichever section is there, that current nav link will be active and show effect, but I also want that the beside circle should also change color, but that circle is out of the navlink and also it’s a separate entity, so I’m not getting how I can fix it