Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> #myDIV { width: 50%; background-color: lightblue; overflow: auto; border: 1px solid black; -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 50% {min-width: 800px;} } /* Standard syntax */ @keyframes mymove { 50% {min-width: 800px;} } </style> </head> <body> <p>Change the min-width, from "none" to 800px and back to "none":<p> <p><strong>Note:</strong> The min-width property overrides the width property.</p> <div id="myDIV"> <p>This DIV element has a pre-defined width: 50%.</p> <p>An animation will gradually change the min-width to 800 pixels.</p> </div> <p>The min-width property 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> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_anim_min-width by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:52:44 GMT --> </html>
Result:
Try it Yourself - © w3schools.com