CSS @keyframes Rule
CSS @keyframes Rule
The @keyframes rule is used to specify the animation code. It is created by gradually changing from one set of CSS styles to another. During the animation, we can change the set of CSS styles many times. We can style change will happen in percent, or with the keywords from and to. 0% is the beginning of the animation, and 100% is when the animation is complete.
Syntax:-
Its syntax is:- @keyframes animationname {keyframes-selector {css-styles;}}
Further Explanation:-
Value | Description |
---|---|
animationname | Required. Defines the name of the animation. |
keyframes-selector | Required. Percentage of the animation duration. |
css-styles | Required. One or more legal CSS style properties |