html - How can i make a blur effect on overlay -


i have problem css blur effect on website, because when want set effect on div on page not working correctly , div have blur weird inner shadow effect, picture showing problem:

enter image description here

as see blur effect not working inner glow or shadow in overlay box.

the code:

.overlay__board {    background-color: rgba(0, 0, 0, 0.8);    position: fixed;    z-index: 99;    height: 100%;    width: 100%;    display: block;    top: 0px;    left: 0px;    filter: blur(17px);  }  .follow__board__popup {    width: 791px;    height: 626px;    border: 1px solid #ccc;    position: fixed;    left: 0;    right: 0;    bottom: 0;    top: 0;    margin: auto;    box-sizing: border-box;    border-radius: 5px;    background-color: #fff;    z-index: 9999;  }
<div class="overlay__board"></div>  <div class="follow__board__popup"></div>

https://jsfiddle.net/iklas/dzagx0y5/

the filter: blur() property blurs element applied to. black overlay element trying blur black , result alpha creeping in creating vignette effect.

to blur background elements want apply blur element directly quite pain maintain depending on modularity of overlay pop up.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -