HTML CSS examples for CSS Widget:Hover Image
Click on a text which is displayed when an image is hovered
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .box {<!-- w w w . j ava 2s .com--> background:red; width:100px; height:100px; position:relative; } .box:hover a { top:11px; opacity:2; } a { -webkit-transition:all .5s; -moz-transition:all .5s; -o-transition:all .5s; -ms-transition:all .5s; transition:all .5s; background:blue; color:Chartreuse; position:absolute; top:0; left:0; right:0; text-align:center; opacity:0; } </style> </head> <body> <div class="box"> <a href="http://google.co.uk">Lorem ips</a> </div> </body> </html>