JQuery: determine when an element scrolls to

I would like to detect when an element scrolls to (makes visible through scrolling) through jQuery. Is there a way to do this with the .live () function so that every new page element fires an event when scrolling? Thank:)

+5
source share
1 answer

Yes, maybe ..

Try:

$(".whatever").live("hover",
    function()
    {
        // Your code here
    }
);

JSFiddle: http://jsfiddle.net/3dKje/1/

Sorry, I dug this.

0
source

All Articles