Animated border on a div - HTML CSS CSS

HTML CSS examples for CSS:Animation

Description

Animated border on a div

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">
#test<!--from  w  ww  .ja va 2s  .  c  o m-->
 {
   position:absolute;
   width:201px;
   top:100px;
   left:51px;
   border-width:9px;
   -moz-border-image:url('http://www.java2s.com/style/demo/Google-Chrome.png') 9 repeat;
   -webkit-border-image:url('http://www.java2s.com/style/demo/Google-Chrome.png') 9 repeat;
   -o-border-image:url('http://www.java2s.com/style/demo/Google-Chrome.png') 9 repeat;
   border-image:url('http://www.java2s.com/style/demo/Google-Chrome.png') 9 repeat;
}
</style> 
 </head> 
 <body> 
  <div id="test">
    test 
  </div>  
 </body>
</html>

Related Tutorials