Is there a way to blur the background Div inside a wrapping div without the blur propagating up to the parent element during the transition?
The issue arises when transitioning the opacity of the child div, causing feathered edges that disappear after the transition.
HTML / Jade
div
div( class="bg" style="background: url('http://placekitten.com/300') no-repeat center center; background-size: cover;")
SCSS
div {
cursor: pointer; cursor: hand;
.bg{
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
transition: 550ms ease-out;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
transform: scale(1.1);
}
}
div {
position: relative;
height: 500px; width: 500px;
overflow: hidden;
background-color: rgba( 0, 0, 0, 1);
}
div:hover {
.bg {
opacity: .6;
}
}
If you're experiencing this issue in Chrome, check out this codepen for reference:
http://codepen.io/LAzzam2/pen/kXdwWp
Any suggestions on how to fix this problem would be greatly appreciated! Thank you!