I have one page where the next page is fired when the user reaches the bottom of the page:
$(window).scroll(function(){
if ($(window).scrollTop() == $(document).height() - $(window).height()){
next_funtion();
}
});
However, I want next page to be fired when the user reaches 50% of the page height or 200 px from the top.