Animating mouse leave and hover - HTML CSS CSS

HTML CSS examples for CSS:Animation

Description

Animating mouse leave and 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">
div {<!--  w  ww.  ja v a 2s.  com-->
   width:100px;
   height:100px;
   background:red;
   transition:background 0.6s ease-in-out;
}

div:hover {
   background:green;
}
</style> 
 </head> 
 <body> 
  <div> 
  </div>  
 </body>
</html>

Related Tutorials