How can I determine if an element is currently positioned within a specific div?
I am working on a vertical scrolling menu where the height of the navigation div is set and overflow is hidden to show only a portion of the links at a time.
To navigate through the links, I have implemented graphics at the top and bottom of the menu. Clicking these graphics moves the links accordingly. However, I'm facing difficulty in stopping the animation once it reaches the first or last link.
If you would like to see the issue in action, please visit