Get target scroll position of a smooth scroll element.

Question:
Is there any way to get the target scroll position/point and not the current scroll position.
I am able to get element.scrollLeft but thats current scroll position, I want the position where browser will stop the smooth scroll or stop the scroll "animation".

What I am trying to do:
I have a slide show which can be slid by classic scroll (scroll wheel or scroll bar) or left and right buttons that I have added...
Now I am trying to disable the left or right button when there is no more scrolling that can be done...
Screenshot_20240315_133004.png
Was this page helpful?