I am in the process of creating a portfolio for my upcoming exam. As part of the portfolio, I am required to write several articles. To showcase these articles, I have designed a homepage that displays the different subjects I have covered. When a user clicks on a subject, they are directed to the corresponding article.
On the left side of the page, there is a sticky menu that scrolls along with the user. However, I am facing an issue where the menu continues to scroll even after the article has ended. I would like the menu to stop scrolling at the end of each article, allowing a new chapter menu to appear. Can anyone provide guidance on how to achieve this?
Edit: Here is the code for the menu in HTML, CSS, and JQuery: