Show gif on hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Show gif on hover

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
div {<!--   w  ww.  j  a  v  a  2s .  c o m-->
   width:501px;
   height:501px;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}

div:hover {
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}
</style> 
 </head> 
 <body translate="no"> 
  <div> 
  </div>  
 </body>
</html>

Related Tutorials