Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { width: 100px; height: 100px; background: red; position :relative; -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation: mymove 5s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes mymove { 0% {top: 0px;} 25% {top: 200px;} 75% {top: 50px} 100% {top: 100px;} } /* Standard syntax */ @keyframes mymove { 0% {top: 0px;} 25% {top: 200px;} 75% {top: 50px} 100% {top: 100px;} } </style> </head> <body> <p><strong>Note:</strong> The @keyframes rule is not supported in Internet Explorer 9 and earlier versions.</p> <div></div> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_keyframes by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:52:16 GMT --> </html>
Result:
Try it Yourself - © w3schools.com