<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
position: relative;
animation: mymove 3s;
animation-delay: 2s;
animation-fill-mode: both;
}
@keyframes mymove {
from {top: 0px; background-color: yellow;}
to {top: 200px; background-color: blue;}
}
</style>
</head>
<body>
<h1>animation-fill-mode: both</h1>
<p>Let the div element get the style values set by the first keyframe before the animation starts,
and retain the style values from the last keyframe when the animation ends:</p>
<div></div>
</body>
</html>