1
I have a simple jscript function that opens a floating box, but when the floating box opens I wanted the background to be with the Blur effect, only I can’t leave the background with this effect, I’ve tried several Google methods and I was unsuccessful.
I’ve tried everything, the only thing I’ve managed is to leave the background with the dark color, but the effect 'filter: Blur(2px);' doesn’t seem to work.
body > #widgetNotify {
filter: blur(0px);
}
body > * {
transition: filter 0.2s linear;
}
#widgetNotify {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999999999;
display: none;
justify-content: center;
align-items: center;
background: #00000094;
}
#widgetNotify::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit
}
#widgetNotify * {
box-sizing: border-box
}
#widgetNotify .widget {
width: 100%;
position: relative;
font-family: "UOLText", "UOLTextRegular", Arial, Helvetica, sans-serif;
font-size: 14px;
text-transform: none;
margin: 0;
box-sizing: border-box
}
#widgetNotify .widget * {
outline: 0
}
#widgetNotify .widget .messagesContainer {
background-color: #fff;
width: 100%;
height: auto;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
text-align: left;
box-sizing: border-box;
opacity: 0;
visibility: hidden;
-webkit-box-shadow: 0 1px 10px 1px rgba(76, 76, 76, 0.3);
-moz-box-shadow: 0 1px 10px 1px rgba(76, 76, 76, 0.3);
-o-box-shadow: 0 1px 10px 1px rgba(76, 76, 76, 0.3);
box-shadow: 0 1px 10px 1px rgba(76, 76, 76, 0.3);
margin-top: 7px;
z-index: 6000001;
line-height: 1.2
}
#widgetNotify .widget.opened .messagesContainer {
opacity: 1;
visibility: visible
}
#widgetNotify .widget .messagesContainer.loginbox {
height: 100%;
top: 0;
margin-top: 0
}
#widgetNotify .widget.widget-template-desktop .messagesContainer.loginbox {
top: 100% !important;
position: absolute;
max-height: 405px;
height: 100px;
width: 100px;
min-width: 200px;
min-height: 200px;
}
#widgetNotify .widget.widget-template-desktop .messagesContainer.loginbox {
height: 100%;
border: solid 1px #e6e6e6;
position: fixed !important;
top: 50% !important;
left: 50% !important;
margin-left: -305px !important;
margin-top: -222.5px !important;
max-width: 100px;
max-height: 100px;
border-radius: 2px;
}
#widgetNotify .widget.widget-template-desktop .messagesContainer.loginbox::after {
content: '';
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: .8;
z-index: -1;
}
#widgetNotify .widget.widget-template-desktop .messagesContainer {
width: 100px;
height: 100px;
min-height: 100px;
max-height: 100px;
position: absolute;
top: 100%;
left: 0;
margin-top: 7px
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="widgetNotify" class="widgetNotify" style="display: block;">
<div class="widget widget-template-desktop opened widget-align-right">
<div class="messagesContainer loginbox modal-login manual-modal-login"></div>
</div>
</div>
</body>
</html>
you will need to make a javascript call to when calling the box leave the other elements with the following css effect: . Blur{ -Webkit-filter: Blur(5px); /* Safari 6.0 - 9.0 */ filter: Blur(5px); }
– Helton Fábio