CSS3 animation speed after hover - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Speed

Description

CSS3 animation speed after 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">

#image {<!--   w  w w.  j  av  a 2s .c om-->
   width:400px;
   height:400px;
   background-image:url('https://www.java2s.com/style/demo/Safari.png');
   background-size:150%;
   background-position:left center;
   transition:5s linear;
   -moz-transition:2s linear;
   -webkit-transition:2s linear;
}
#image:hover {
   background-position:right center;
}


      </style> 
 </head> 
 <body> 
  <div id="image"></div>  
 </body>
</html>

Related Tutorials