Definition: CSS Animation is used to create animation on the webpage.
Property | Description |
---|---|
@keyframes | Defines keyframes within CSS animations, specifying intermediate steps and style changes at different points in time. |
animation | A shorthand property that combines multiple animation properties into a single declaration, including animation-name, animation-duration, animation-delay, animation-iteration-count, animation-direction, and more. |
animation-direction | Specifies the direction of the animation playback, such as forward, backward, alternate, or alternate-reverse. |
animation-duration | Sets the length of time for the animation to complete one cycle, specified in seconds (s) or milliseconds (ms). |
animation-iteration-count | Determines the number of times the animation should repeat, using a specific number or the keyword "infinite" for infinite repetitions. |
animation-timing-function | Defines the timing function for the animation. ease-in-out means the animation starts slow, accelerates, and then slows down towards the end. |
animation-name | Specifies the name of the @keyframes rule that defines the animation's keyframes, binding the animation to a selector. |
Blocks | Output |
---|---|
![]() ![]() ![]() |
![]() |
Block | Output |
---|---|
![]() ![]() |
![]() |
Code | Output |
---|---|
![]() ![]() ![]() |
![]() |