JSFiddle - React, Tailwind, and code Playground
by David
HTML
Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create scrollbars Lots of text to create...
CSS
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
z-index: 10000;
}
#tester {
z-index: 10001;
}
JavaScript
var overlay = jQuery('<div id="overlay"> </div>');
overlay.appendTo(document.body);