Can anyone help me figure out why the .cd-img-overlay
class is not functioning properly when I hover over a list item?
Check out my live code here
CSS:
#cd-team .cd-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(92, 75, 81, 0.9);
opacity: 0;
border-radius: .25em .25em 0 0;
-webkit-transition: opacity 0.3s;
-moz-transition: opacity 0.3s;
transition: opacity 0.3s;
}
HTML:
<li>
<a href="#0" data-type="member-1">
<figure>
<img src="images/bruce.jpg" alt="Team member 1" />
<div class="cd-img-overlay"><span>View Bio</span></div>
</figure>
<div class="cd-member-info">
John Smith <span>Founder & President</span>
</div>
</a>
</li>
I'm struggling to get the overlay class to function as shown in this tutorial's demo when hovering over a team member: