steamboy
steamboy

Reputation: 1162

jquery slider detect end of scroll?

How will I know if jquery slider is at the end of the scroll?

I'll call an ajax function to load a page when I reach it.

Upvotes: 0

Views: 756

Answers (1)

Jage
Jage

Reputation: 8096

When you do a slide, you can pass in a function to be called after the animation is over.

$('#myEl').slideDown(function(){
    alert('Animation complete!');
});

Upvotes: 1

Related Questions