I have 2 sepatared components like the image attached.
The first column is a group of links and the second column has a component that holds another component in a loop.
I need to watch the second columns elements so that I can check is some elements as inside or outside the viewport, so I can highlight the corresponding link in the left component.
How can I do this communication using .astro components?