I solved it with fadeTo (), it is something like this
Back up your line item
$("#position").attr("name","scroll"+$("body").scrollTop());
Fadeout:
$("#content").fadeOut(300,function(){........});
To go back, do a semi fadeIn and call back with:
$("#content").fadeTo(10,0.1,function(){ $("body").scrollTop($("#position").attr("name").replace("scroll","")); });
and they completely disappear in
$("#content").fadeTo(300,1);
source share