There are many techniques through which we can place an event when the scroller reaches the bottom of the page.
If the user wants to play an event when he reach the bottom of the page, he can do the same with the help of the example below:
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
$(body).addClass("changeBg");
}
});
From this we can do the particular that we want to do.
You can also download the example attached.
Hope this will help you.
0 Comment(s)