How do I make the mouse pointer over an image appear with another opacity?
For example: I have a div with the cover image of a movie, when I hover the mouse under the div, I would like to display the PLAY button.
The only related material I found on the internet was this link that teaches how to display captions under the image, which I adapted to my need.
When I mouse over the image, the PLAY button appears ...
However, it is not the way I need it, because the play button appears next to the image when you load the page.
Page loaded without hovering over the image
Page loaded by mouseover image
<style>.imgefeito{margin:0;overflow:hidden;float:left;position:relative;}.imgefeitoa{text-decoration:none;}.imgefeitoa:hover{cursor:pointer;}.imgefeitoa:hover.desc{display:block;font-size:1.2em;padding:10px0;color:#fff;position:absolute;bottom:11px;padding:10px;margin:0;}</style><divclass="imgefeito">
<a href="#">
<img src="rrr.png" alt="Daim Graffiti" />
<span class="desc">
<img src="play.png" alt="Daim Graffiti" />
</span>
</a>
</div>
Is there a way to use this code correctly, or another simpler and more objective implementation?