Using jQuery
Taken from Check if element is visible after scrolling
You can use this function to detect if the user has "scorll a litlle bit to the next div" and then show the div you are aiming to show:
<div id="div1" style="height:800px;">some content</div>
<div id="div2" style="height:800px;">some content</div>
// checks if the element passed in is in view
function isScrolledIntoView(elem)
{
var $elem = $(elem);
var $window = $(window);
var docViewTop = $window.scrollTop();
var docViewBottom = docViewTop + $window.height();
var elemTop = $elem.offset().top;
var elemBottom = elemTop + $elem.height();
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
}
// get the element to check e.g. the "next div" in your case
var el = document.getElementById('div2');
// when the user scrolls, check if the element has come into view
window.onscroll = function() {
if (isScrolledIntoView(el)) {
// take the user to the top of the div by it's id
$('html, body').animate({
scrollTop: $('#div2').offset().top
}, 'slow');
return false;
}
}