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.
Loading...
Related Quiz
- In the context of CSS masking, what does the mask-composite property do?
- You want to set a global color scheme for a website using CSS variables. Where would be the best place to define these custom properties?
- How do you specify the duration of a transition effect in CSS?
- How does Autoprefixing aid in ensuring cross-browser compatibility?
- How does the "line-height" property affect the vertical spacing of a block of text?