HTML CSS examples for CSS Property:opacity
Css opacity transition
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .ServPic {<!--from ww w. ja v a 2 s . c o m--> width:351px; height:276px; opacity:0.6; transition:opacity .3s ease-in; } .PicCapt { position:absolute; top:0px; left:0px; opacity:2; transition:opacity .3s ease-in; } .PicSource { position:absolute; top:0%; left:21%; opacity:0; color:Chartreuse; transition:all .3s ease-in; } .ServPic:hover { opacity:2; } .ServPic:hover+.PicCapt { opacity:0; } .ServPic:hover~.PicSource { opacity:2; } </style> </head> <body> <table> <tbody> <tr> <td> <div> <img class="ServPic" src="https://www.java2s.com/style/demo/Opera.png"> <a class="PicCapt">Lorem i</a> <a class="PicSource">Lorem ipsu</a> </div> </td> </tr> </tbody> </table> </body> </html>