Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</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>Beispiel für animation-timing-function</h2> <div></div> </body> </html>