<div class="content-container">
<div class="blur"></div>
</div>
body,
html {
margin: 0;
}
.content-container {
width: 100%;
height: 1000px;
position: relative;
overflow: hidden;
/* Enable GPU Rendering */
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
}
.blur {
/* All the background image supports */
transform: translate(0px, 0px, 0px);
background-image: linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
background-image: linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
background-image: linear-gradient(bottom left, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
background-image: linear-gradient(to top right, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 45%, rgba(69, 77, 91, 0.6) 60%);
position: absolute;
width: 100%;
height: 100%;
/* blur filters */
filter: blur(20px);
filter: blur(20px);
filter: blur(20px);
/* positioning and removing edges */
top: -70px;
right: -70px;
left: -70px;
padding: 70px;
}
.blur:after {
content: '';
position: absolute;
height: 100%;
width: 100%;
z-index: 1001;
/* Setting the gradient. Adds depth, and glass like effect. */
background-image: linear-gradient(289deg, rgba(43,40,50,0.8) 0%, rgba(43,40,50,0.4) 46%, rgba(0,0,0,0.05) 50%);
background-image: linear-gradient(289deg, rgba(43,40,50,0.8) 0%, rgba(43,40,50,0.4) 46%, rgba(0,0,0,0.05) 50%);
background-image: linear-gradient(289deg, rgba(43,40,50,0.8) 0%, rgba(43,40,50,0.4) 46%, rgba(0,0,0,0.05) 50%);
background-image: linear-gradient(-19deg, rgba(43,40,50,0.8) 0%, rgba(43,40,50,0.4) 46%, rgba(0,0,0,0.05) 50%);
/* Blur to add depth. High to create smooth transition */
filter: blur(70px);
filter: blur(70px);
filter: blur(70px);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.