<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
width: 100px;
height: 100px;
border: 1px solid #000;
line-height: 6;
text-align: center;
animation: myAnimation 1s infinite;
-webkit-animation: myAnimation 1s infinite; /* Safari 4.0 - 8.0 */
animation-delay: 2s;
-webkit-animation-delay: 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-delay Property</h1>
<div>
Div
</div>
<p><strong>Note</strong>: Here css property animation-delay: 2s; will start the animation after a wait of 2 seconds.</p> </body>
</html>