When I hover over the image the play button shows and the background-color
and opacity
of .youTubeVideo
changes.
However, this does not happen when you hover over just the play button. How can I make the background-color
and opacity
of .youTubeVideo
change when hovering over the play button?
.youTubeVideo:hover {
opacity: 0.5;
background-color: green;
}
.videoThum:hover {
background-color: green;
background-image: url("http://s24.postimg.org/k69rptjk1/play_button.jpg");
background-position: center top;
background-repeat: no-repeat;
background-size: 100% 100%;
}
<div class="col-3">
<div class="videoThum">
<a href="javascript:;" rel="https://www.youtube.com/embed/OSgvYZpO2xY" class="youTubeVideo">
<img src="http://s8.postimg.org/jf407d2xh/saina_nehwal_syed.png" />
</a>
</div>
<div class="caption"><a href="#"><h2>2015 Syed Modi International</h2></a>
<a href="#">
<p>2015 Syed Modi International India Masters SF [WS]</p>
</a>
</div>
</div>