Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
div {
width: 100px;
height: 100px;
border-radius: 50%;
background: #1c87c9;
position: relative;
-webkit-animation: element 5s infinite; /* Safari 4.0 - 8.0 */
-webkit-animation-timing-function: ease; /* Safari 4.0 - 8.0 */
animation: element 5s infinite;
animation-timing-function: ease;
}
/* 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>
<h2>Пример свойства animation-timing-function </h2>
<div></div>
</body>
</html>