An animation allows an element to transition from one style to another gradually. You can update as many CSS properties as you'd like, as often as you'd like. To use CSS animation, you must first define the animation's keyframes. Keyframes define the styles that an element will have at different points in time.