There is such a script:
jQuery.fn.fadeElements = function (a) { $(this).hover(function () { $(this).stop(true, true).fadeTo(a.inTime, a.inOpacity); }, function () { $(this).stop(true, true).delay(a.delayTime).fadeTo(a.outTime, a.outOpacity); }); }; $(function () { $('#ubar').fadeElements({ inOpacity: 1, outOpacity: 0.1, inTime: 200, outTime: 200, delayTime: 1000 }); });
How to make it so that if we scroll the site down to the bottom, then the block with #ubar would disappear smoothly, i.e. display: none, but at the same time, so as not to argue with the script above, which smoothly shows and hides the block when aiming at it?