10 lines
337 B
JavaScript
10 lines
337 B
JavaScript
$(function () {
|
|
$(document).on('scroll', function (e) {
|
|
$(".search").css("opacity", 0);
|
|
$(".search").css("top", "-141px");
|
|
$("#openSearchTool").removeClass("focus");
|
|
$('body').css({
|
|
'background-position': 'top ' + parseInt(e.originalEvent.pageY * 0.5) + 'px center'
|
|
});
|
|
});
|
|
}); |