Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> div { width: 100px; height: 100px; background: #8ebf42; position: relative; -webkit-animation: element 7s infinite; /* Safari 4.0 - 8.0 */ -webkit-animation-timing-function: ease-in; /* Safari 4.0 - 8.0 */ animation: element 7s infinite; animation-timing-function: ease-in; } /* Safari 4.0 - 8.0 */ @-webkit-keyframes element { from {left: 0px;} to {left: 200px;} } @keyframes element { from {left: 0px;} to {left: 200px;} } </style> </head> <body> <h1>Пример свойства animation-timing-function</h1> <div></div> </body> </html>