$("html").fadeTo("slow",0.5);
OR
$("html").css({ 'opacity':'0.5' });
Why does either of these scripts whiten the page? I need it to become darker, no whiter, and usually that’s what opacity does but not here…
How can I set a black opacity to my html with jquery?
Add a black div and fade it in on top of everything
HTML:
CSS:
JQuery:
Here’s a working example: http://jsfiddle.net/AlienWebguy/GM2Z6/2/