KeyFrames.
01. Syntax:
@keyframes Animation Name {
0%:{property: Value},
...
100%:{Property: Value}
}
02.0% can be substituted with from 100% can be replaced by, where 0%% cannot be omitted
03. Percentages indicate that the entire process of animation execution is from 0% to 100%, where the property changes to a specified value of 0% and 100% at every 1%. We generally have to write
Animation-name:
The name of the animation specified with keyframes
Animation-duration.
The duration of the animation, in s or MS units
Animation-timing-function:
Used to specify the rate of transformation for changing the property value,
As with Transition-timing-function, there are six ways to transform
Animation-delay:
How long is the delay after the animation is performed in s or MS units
. Animation-iteration-count:
The number of times the animation executes can be performed in a specific number of times, or it can be infinite, indicating that it has been executed
. Animation-direction:
Used to specify the direction in which the animation plays, provided the Animation-iteration-count is set
The value can be either normal or alternate
Normal indicates that each time it is played according to a predetermined
Alternate represents the base number of times to play forward, even several times backwards
Animation-play-state.
Used to control the playback state of an animation
Can be for running or paused
Running is the default value and can be set to paused so that the animation likes not playing
Animation-fill-mode.
Value:
None does not change the default value
Forwards when the animation is complete, keep the last property value
Backwards apply the Start attribute value (defined in the first keyframe) for a period of time specified by Animation-delay before the animation is displayed.
Both apply both forwards and backwards properties
10. You can use the animation property to write the previous properties together, but if you specify Animation-play-state, you cannot write in animation
Animation:name duration timing-function Delay Iteration-count dirction
11 Points of attention:
The transition animation executes when the property changes, but the animation animation executes immediately.
Css3_animation using Notes