What does the animation-fill-mode property do in a CSS animation?

  • It specifies the animation duration.
  • It defines the timing function for the animation.
  • It controls the behavior of the element before and after the animation.
  • It sets the animation name.
The animation-fill-mode property is used to control the behavior of the animated element before and after the animation execution. It can have values like "none," "forwards," "backwards," and "both." "None" is the default value, which means the element doesn't maintain any styles before or after the animation. "Forwards" retains the styles after the animation ends, and "backwards" maintains the styles before the animation starts. "Both" keeps the styles both before and after the animation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *