This example code tells you how to do animation using css keyframe.Please note that I have learned this from the udemy course by Jonas Schmedtmann. Example Example Code HTML code CSS code The css code below uses keyframe for animation which gives a way to control how the intermediate steps of the animation should be by defining actions for each percentage of the animation duration. As you can see, you need to define keyframes so that you can use it in other place by animation property. When defining keyframes, you need to specify the percentage of the duration. For example, READ MORE