I have came to a problem when trying to change text opacity to 1 when hovering over an image. Initial opacity value of text is 0. So when I hover over profile_picture image, text opacity should be 1, but problem is it doesn't changes text opacity.
.account_image{
margin-top: 5px;
margin-bottom: 5px;
}
.profile_picture{
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 50%;
margin-left: 65px;
filter: brightness(100%);
cursor: pointer;
}
.t_overlay{
position: absolute;
margin-left: 73px;
margin-top: -43px;
font-size: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
line-height: 1.2;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
cursor: pointer;
opacity: 0;
color: white;
font-family: 'Quicksand', sans-serif;
pointer-events: none;
}
.profile_picture:hover{
filter: brightness(70%);
transition: filter 0.25s ease;
}
.profile_picture:hover .t_overlay{
opacity: 1;
}
<div class="account_image">
<img src="img/profile_p.jpg" class="profile_picture">
<div class="t_overlay">
<div class="change_c">CHANGE</div>
<div class="avatar_a">AVI</div>
</div>
</div>