In Short: I am working on a project and I want to run a function when a particular div is displayed on the screen.
Detail: There is a scroll to top button fixed on the bottom right of the screen in my template. I want to hide that button when someone scroll down to the footer. Means when someone scroll down to the footer and the top border of the footer is displayed on the screen, I want a function to run which would hide the go to top button.
Please help me out of this problem...