Prev Demo
Animation Timing Function
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> div { width: 100px; height: 100px; background: green; position: relative; /* for chrome and safari*/ -webkit-animation: mymove 5s; -webkit-animation-timing-function: linear; /*for firefox*/ -moz-animation: mymove 5s; -moz-animation-timing-function: linear; /*for opera */ -o-animation: mymove 5s; -o-animation-timing-function: linear; /*Standard syntax */ animation: mymove 5s; animation-timing-function: linear; } @-webkit-keyframes mymove { from { background-color: red; left: 0px; } to { background-color: lemonchiffon; left: 200px; } } @-moz-keyframes mymove { from { background-color: red; left: 0px; } to { background-color: lemonchiffon; left: 200px; } } @-o-keyframes mymove { from { background-color: red; left: 0px; } to { background-color: lemonchiffon; left: 200px; } } @keyframes mymove { from { background-color: red; left: 0px; } to { background-color: lemonchiffon; left: 200px; } } </style> </head> <body> <h2> Animation timing function </h2> <div></div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output