I have a little issue, and it's probably nothing but I'm struggling with it. For my portfolio, I used the mix-it-up plugin. Now I'm trying to add this simple effect where some text appears when hovering the thumbnail. The problem is that the text gets the same opacity as my overlayer, which is not the point because it gets unreadable. I know it's probable something supid, but I can't figure out what it is. Thanks in advance for your help!
here is the html:
<div id="Container">
<div class="mix illu">
<img src="" alt="">
<div class="text-hover">
<h3>Title</h3>
<p>Some text</p>
</div>
</div>
</div>
and my SASS
.mix {
position: relative;
text-align: center;
transition: width 2s;
h3 {
color: grey;
font-size: 26px;
}
.text-hover {
position: absolute;
width: 100%;
top: 70%;
left: 0;
transition: width 2s;
opacity: 0;
z-index: 500;
}
.text-hover:before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100px;
background-color: white;
content: '';
opacity: 0.5;
z-index: 1;
}
}
.mix:hover {
.text-hover{
opacity: 1;
top: 60%;
bottom: 0;
}
}