Home › Forums › JavaScript › problem with animation .stop() method › Reply To: problem with animation .stop() method
September 18, 2016 at 5:48 am
#245667
Mottie
Member
I think what is missing is that the .position()
of the animation returns the coordinates relative to the offset parent. Whereas .offset()
is relative to the document.
Without a demo to work with, I think you’ll actually need to use window scrollTop()
to check the scroll position of the page, then add the .offset()
of the image to determine the actual position.