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:
Note: The animation-fill-mode property is not supported in Internet Explorer 9 and earlier versions.