Click on a text which is displayed when an image is hovered - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Image

Description

Click on a text which is displayed when an image is hovered

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials