Nice job on the challenge. Looks good!
I think you could make your overlay a parent to both the view img and the actual overlay itself. Make sure the (now) parent overlay div has a position and then you can set the new overlay child as absolute so it won't affect the position of your view image, then your opacity settings can be separated. Also, putting a high z-index on your view to make sure its on top of the 2 other divs.
Something like...
<div class="overlay-parent">
<div class="overlay"></div>
<img class="view" src=""/>
</div>
.overlay-parent{
position:relative;
opacity:0,
...
}
.overlay-parent:hover{
opacity:1
}
.overlay{
position:absolute;
top:0;
left:0;
height:100%:
width:100%:
opacity:50%;
background: /* blue/tea color */
}
.view{
position:relative //think z-index requires a position?? might not be necessary though
z-index:5;
}
I think that would work...and hopefully makes (some) sense! 🙂