Hover to expand to show full content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hover to expand to show full content

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">
.block {<!-- w  ww  .  j  a  v  a  2  s  . c  o m-->
   position:relative;
   height:501px;
   width:501px;
}

.abs {
   position:absolute;
   height:41px;
   width:201px;
   background-color:Chartreuse;
   overflow:hidden;
}

.abs:hover {
   height:auto;
   transition:height 2s;
}
</style> 
 </head> 
 <body> 
  <div class="block"> 
   <div class="abs">
     Lorem ipsum 
    <br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials