HTML CSS examples for CSS Widget:Hover Effect
load 2 hover effects at the same time
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> a {<!--from www.j av a 2 s .c om--> display:inline-block; overflow:hidden; position:relative; } .play { background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat center center; opacity:0; position:absolute; width:185px; height:105px; -webkit-transition:opacity 2s; } a:hover img { border:3px solid Chartreuse; } a:hover .play { opacity:0.8; } </style> </head> <body> <a href="/"> <div class="play"></div> <img class="img" src="https://www.java2s.com/style/demo/InternetExplorer.png"> <br> <b>Lorem ipsu</b> </a> </body> </html>