div {
width: 100px;
height: 100px;
background: red;
transition: width 2s linear 1s;
}
div:hover {
width: 300px;
}
.layer1{
transition: 1s;
}
.layer2{
transition : 1s;
}
.layer1:hover ~ .layer2 {
filter: blur(10px)
}
.layer1:hover {
box-shadow: 0 25px 60px rgba(0,0,0,.8);
}
<h1 class="layer1 layer2">Using The transition Shorthand Property</h1>
<p class="layer1 layer2">Hover over the div element below, to see the transition effect:</p>
<div class="layer1 layer2"></div>
<p class="layer1 layer2"><b>Note:</b> The transition effect has a 1 second delay before starting.</p>
<p class="layer1 layer2"><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
I have multiple elements in a page, and i want to add blur affect. when i hover in the top element every other element is getting blurred(which is correct). But when i hover over the second element, the element above it is not getting blurred, but the elements below it is blurred.
Kindly provide me a solution for this problem.