Css3_animation using Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.