CSS3 Transition Animation

Source: Internet
Author: User
div{
width:200px;
height:300px;
background:red;
transtion:width 2s height 2s;
-webkit-transtion:width 2s height 2s;
-o-transtion:width 2s height 2s;
-moz-transtion:width 2s height 2s;
}
div:hover{
width:400px;
height:800px;
Background:orange;
}

Transtion: Attribute shorthand sets 4 transition properties.

Transtion-property: Specify transition CSS Property name

Transtion-duration: The time required for the transition to take. Default is 0

Transtion-timing-function: Specifies the transition time curve. Default is Ease

Transtion-delay: Specify transition effect Time

TRANSTION-TIMING-FUNCTION Specifies the transition effect time curve. Default is Ease

Linear: Linear transition

Ease: Smooth transitions

Ease-in: from slow to fast

Ease-out: from fast to slow

Ease-in-out: From slow to fast to slow

Cubic-bezier: Bezier Curve

CSS3 Transition Animation

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.