Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> #main { width: 400px; height: 150px; border: 1px solid #000000; display: flex; } #main div { width: 70px; height: 70px; } #myGreenDIV { -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 50% {order: 6;} } /* Standard syntax */ @keyframes mymove { 50% {order: 6;} } </style> </head> <body> <p>Change the order of the green DIV element, 1 to 6 and back to 1:<p> <div id="main"> <div style="background-color:lightgreen;order:1;" id="myGreenDIV"></div> <div style="background-color:coral;order:2;"></div> <div style="background-color:lightblue;order:3;"></div> <div style="background-color:pink;order:4;"></div> </div> <p>The order property is <em>animatable</em> in CSS.</p> <p><strong>Note:</strong> Animation of the order property is not supported in Chrome.</p> <p><strong>Note:</strong> 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_order by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:52:47 GMT --> </html>
Result:
Try it Yourself - © w3schools.com