Footer slides up when cursor hover on footer - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Footer slides up when cursor hover on footer

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>
html, body {
   padding:0;
   margin:0;
   height:100%;
}

footer {<!-- w ww. j  ava  2s  .  co m-->
   background-color:Chartreuse;
   position:fixed;
   bottom:0;
   left:0;
   right:0;
   height:76px;
   color:yellow;
   -webkit-transition:all .3s ease-in;
   -moz-transition:all .3s ease-in;
   -ms-transition:all .3s ease-in;
   -o-transition:all .3s ease-in;
   transition:all .3s ease-in;
}

footer:hover {
   height:51%;
}
</style> 
 </head> 
 <body> 
  <footer>
    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, tinci 
  </footer>  
 </body>
</html>

Related Tutorials