What is the purpose of the @keyframes rule in CSS?

  • It defines the base font size for an HTML document.
  • It defines the color scheme for a web page.
  • It sets the background image of an HTML element.
  • It specifies the keyframes for CSS animations.
The @keyframes rule in CSS is used to specify the keyframes for CSS animations. Keyframes describe how an animation progresses from the starting state to the ending state. They define the intermediate steps or percentage-based changes in the animation's properties, allowing for smooth and controlled animations.
Add your answer
Loading...

Leave a comment

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