<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
width: 100px;
height: 100px;
border: 1px solid #000;
line-height: 6;
text-align: center;
animation-name: myAnimation;
-webkit-animation-name: myAnimation; /* Safari 4.0 - 8.0 */
animation-duration: 2s;
-webkit-animation-duration: 2s; /* Safari 4.0 - 8.0 */
}
@-webkit-keyframes myAnimation {
from {border-radius: 0%;}
to {border-radius: 50%;}
}
@keyframes myAnimation {
from {border-radius: 0%;}
to {border-radius: 50%;}
}
</style>
</head>
<body>
<h1>CSS animation-name Property</h1>
<div>
Div
</div> </body>
</html>