Is it possible to adjust the z-index
of a div once the opacity transitions
have completed, using only CSS3 properties?
Is there a way to achieve this?
Here is the CSS3 code snippet:
.high-light{
position: fixed;
width: 100%;
height: 100%;
top: 0;
background-color: black;
background-color: rgba(0, 0, 0, 0.61);
opacity:0;
left: 0;
-webkit-transition: opacity 0.5s;
-moz-transition: opacity 0.5s;
transition: opacity 0.3s linear;
z-index: 1;
}
.high-light.high-light-active {
opacity:1;
z-index: 1;
}
Note: When the div has the class high-light-active
, I want the transition to occur first, followed by the change in the z-index value
.