Fill button with a different color on hover - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button hover

Description

Fill button with a different color on 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">

.wrapper {<!--  w w w.jav a 2  s  . co m-->
   position: relative;
   overflow: hidden;
   width: 100px;
   height: 100px;
   border: 1px solid black;
}
#slide {
   position: absolute;
   left: -100px;
   width: 100px;
   height: 100px;
   background: #FFADAD;
   transition: 1s;
   height:100%;
}
.wrapper:hover #slide {
   transition: 1s;
   left: 0;
}
h1{
   position:absolute;
   z-index:999;
}


      </style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <h1>MENU</h1> 
   <div id="slide"></div> 
  </div>  
 </body>
</html>

Related Tutorials