Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript problem with animation .stop() method Reply To: problem with animation .stop() method

#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.