What are the four related properties of css3 animation?

青灯夜游
Release: 2022-01-17 18:49:45
Original
2069 people have browsed it

css3 sets four related attributes for animation: 1. Transform attribute, used to apply 2D or 3D transformation to elements; 2. Transition attribute, used to achieve transition effects; 3. Animation attribute, used to give elements Bind animation; 4. "@keyframes" defines the behavior of a cycle of animation.

What are the four related properties of css3 animation?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Generally speaking, there are only three properties of CSS3 animation: transform, transition, and animation.

transformproperty applies a 2D or 3D transformation to the element. This property allows us to rotate, scale, move or tilt the element.

transitionThe property is a shorthand property for setting four transition properties:

  • transition-property

  • transition-duration

  • transition-timing-function

  • transition-delay

animationThe property is a shorthand property for setting six animation properties:

  • animation-name

  • animation-duration

  • animation-timing-function

  • animation-delay

  • animation-iteration-count

  • animation-direction

## The animation attribute needs to be used together with the @keyframes rule. to create animations.

@keyframesRules

The @keyframes rules enable you to create animations.

The principle of creating animation is to gradually change one set of CSS styles into another set of styles.

You can change this set of CSS styles multiple times during the animation process.

Specify the time when the change occurs as a percentage, or through the keywords "from" and "to", which are equivalent to 0% and 100%.

0% is the start time of the animation, 100% is the end time of the animation.

For best browser support, you should always define 0% and 100% selectors.

     
Copy after login

What are the four related properties of css3 animation?

(Learning video sharing:

css video tutorial

The above is the detailed content of What are the four related properties of css3 animation?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!