Introduction to the new transition attribute in CSS3 (attached example)

Source: Internet
Author: User

This article brings to you the content is about the new transition attribute of the introduction of CSS3 (attached to the example), there is a certain reference value, the need for friends can refer to, I hope to help you.

A new module, transition, has been added to the CSS3, which can trigger the appearance of elements with some simple CSS events to make the effect appear more subtle.
It is a composite property that mainly includes the following sub-properties.

Transition-property: Specifying CSS properties for staging or dynamic impersonation
Transition-duration: Specify the time required to complete the transition
Transition-timing-function: Specifying a transition function
Transition-delay: Specify the delay time to start appearing

Such as:

Transition:background-color. 5s ease. 1s;

Special note: When the "Transition-property" property is set to all, the attribute for all midpoint values is represented.

Example:

width:200px;  height:200px;  background:red;  margin:20px Auto;  -webkit-transition-property:width;  Transition-property:width;  -webkit-transition-duration:.5s;  transition-duration:.5s;  -webkit-transition-timing-function:ease-in;  transition-timing-function:ease-in;  -webkit-transition-delay:. 18s;  transition-delay:.18s;

You can also make individual settings for a property.

Related Article

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.