CSS animation to enlarge div based table row to show more content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Table

Description

CSS animation to enlarge div based table row to show more 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">
#grid {<!--   w  w  w .  ja  v  a 2 s .c  o  m-->
   height:901px;
   border:2px solid Chartreuse;
   display:flex;
   flex-flow:column wrap;
   justify-content:flex-start;
   align-content:flex-start;
   align-items:center;
}

#grid .animeCell {
   padding:6px;
   margin:6px;
   border:2px solid yellow;
   display:inline-block;
   text-align:center;
}

#grid .animeCell img {
   width:151px;
   height:201px;
}

#grid .animeCell .desc {
   display:none;
   transition:all 0.6s;
}

#grid .animeCell:hover .desc {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div id="grid"> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Safari.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Opera.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Opera.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Opera.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/Firefox.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
    <div class="animeCell"> 
     <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
     <br>Lorem ips 
     <div class="desc">
       Lorem 
      <br>Lorem 
      <br>Lorem 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials