Edit This Code:
See Result »
<!DOCTYPE html> <html> <head> <style> #myDIV { width: 300px; height: 200px; border: 1px solid black; -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 50% {border-left-width: 15px;} } /* Standard syntax */ @keyframes mymove { 50% {border-left-width: 15px;} } </style> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?73c27e26f610eb3c9f3feb0c75b03925"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </head> <body> <p>Gradually change the border-left-width property from 1px to 15px then back:</p><p> <div id="myDIV"></div> </p><p>The border-left-width is <em>animatable</em> in CSS.</p> <p><b>Note:</b> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p> </body> </html>
Result: