you mean like g+ does it ?
you can use this plugin here ( https://github.com/brandonaaron/jquery-mousewheel ) to detect the mousewheel event and take action based on that
$('#my_elem').mousewheel(function(event, delta, deltaX, deltaY) {
console.log(delta, deltaX, deltaY);
});
there is also a test page here