Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { width: 100px; height: 100px; background: red; -webkit-animation: myfirst 5s; /* Chrome, Safari, Opera */ animation: myfirst 5s; } /* Chrome, Safari, Opera */ @-webkit-keyframes myfirst { from {background: red;} to {background: yellow;} } /* Standard syntax */ @keyframes myfirst { from {background: red;} to {background: yellow;} } </style> </head> <body> <p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p> <div></div> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_animation1 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:55 GMT --> </html>
Result:
Try it Yourself - © w3schools.com