Please look at this fiddle -> http://jsfiddle.net/LwL9Ls4o/1/
JS:
$(".frontpage").bind('mousewheel', function (e) {
if (e.originalEvent.wheelDelta / 120 < 0) {
$(".frontpage").stop().animate({
top: "-100%"
}, 700);
}
});
$(".container").bind('mousewheel', function (e) {
if (e.originalEvent.wheelDelta / 120 > 0 && $(".container").scrollTop() < 10) {
$(".frontpage").stop().animate({
top: "0"
}, 700);
}
});
Basically it moves the frontpage out of sight on scrolldown, and brings it back in on scrollup. It has been working fine, except it is weirdly slow at the beginning of the animations. Any suggestions? Thank you!