Jquery scroll top
$(document).scroll(function() { var y = $(this).scrollTop(); if (y > $('.welcome').offset().top - 400) { $('.welcome').fadeTo( 700, 1 ); } });