<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Animations: Other Properties</title>
</head>
<body>
<div class="box"></div>
</body>
</html>
.box
{
height: 100px;
width: 100px;
background: red;
animation-name: grow;
animation-duration: 1s;
animation-delay: 1s;
animation-iteration-count: 10;
animation-timing-function: linear;
/*animation-timing-function: ease;
animation-timing-function: ease-in;
animation-timing-function: ease-out;
animation-timing-function: ease-in-out; */
/*animation-direction: normal;
animation-direction: reverse;
animation-direction: alternate; */
animation-direction: alternate-reverse;
}
@keyframes grow
{
from { width: 10px; height: 10px; background: blue; }
to { width: 200px; height: 200px; background: pink; }
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.