Set this button to appear with the transition when mouse hover - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button hover

Description

Set this button to appear with the transition when mouse hover

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

#anim{<!--from  w w  w .j a  va2  s .c om-->
   z-index: 1;
   position: absolute;
   width: 300px;
   height: 200px;
   background-color: red;
   -webkit-transition: all 2s;
   -moz-transition: all 2s;
   -ms-transition: all 2s;
   -o-transition: all 2s;
   transition: all 2s;
}
#anim:hover{
   height:400px
}
#anim:hover + #btn{
   visibility: visible;
}
#btn{
   visibility: hidden;
   z-index: 2;
   position:fixed;
   margin-top: 300px;
}


      </style> 
 </head> 
 <body> 
  <div id="anim"> 
  </div> 
  <input type="button" value="this should be behind" id="btn">  
 </body>
</html>

Related Tutorials