Trying to incorporate a blur panel behind my modal using vue.js, however, The issue arises when the modal-mask
contains nested content. This makes it challenging to apply the filter: blur()
property without blurring everything.
Currently, I am only able to add a black tint to the background.
jsfiddle: https://jsfiddle.net/EricTalv/2eed5qjo/26/
HTML
<div id="content-container">
<div id="wrapper">
<ul id="flex-container">
<li class="flex-item">
<div id="list-area"></div>
</li>
<li class="flex-item">
<div id="img-desc-container">
<div class="image-area">
<img src="http://dukes-lancaster.org/wp-content/uploads/2014/11/placeholder.jpg">
</div>
<div class="description-area"></div>
</div>
</li>
</ul>
<button class="modal-close" @click="$emit('close')">Close</button>
</div>
</div>
</div>
CSS
/* BLUR PANEL */
#modal-mask {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .6);
display: table;
transition: opacity .3s ease;
}