Having some trouble getting a text to display on hover over the parent container while adjusting the opacity. Despite trying multiple methods, it just won't show up no matter what I do!
Here is my current code:
.project{
position: relative;
transition: all 0.2s ease-in-out;
}
.project:hover{
opacity: 0.5;
}
.view-project{
position: absolute;
visibility: hidden;
opacity: 0;
transition: opacity 0.2s, visibility 0.2s;
}
.project:hover .view-project{
visibility: visible;
opacity: 1;
}
<!--Parent class-->
<div class="project">
<div class="project-text">
<!--other content here-->
<!--Text supposed to be hidden and then shown on hover-->
<h2 class="view-project">View Project</h2>
</div>
</div>