CSS3 Animation Properties Transition

Source: Internet
Author: User

Transition
    • Internet Explorer 9 and earlier browsers do not support the transition property.
    • Internet Explorer 10, Firefox, Opera, and Chrome support the transition properties.
    • Safari supports an alternative-webkit-transition property.

The Transition property is a shorthand property for setting four transition properties:

value Properties
Transition-property Specifies the name of the CSS property that sets the transition effect
Transition-duration Specify how many seconds or milliseconds to complete the transition effect
Transition-timing-function The speed curve of the speed effect is mainly linear: the transition effect that starts at the same speed to the end; ease: transition effect that starts slowly, then gets faster, then ends slowly; ease-in: transition effect at a slow start; Ease-out: Specifies transition effect at slow end Ease-in-out: Specifies the transition effect that starts and ends at a slow speed; Cubic-bezier (0.42,0,0.58,1): Defines its own value, between 0 and 1;
Transition-delay Define when the transition effect starts

can be abbreviated as: Transition:property duration timing-function delay;

For example:

<style>    .box{ width: 200px; height: 200px; background: #00f; transition: width 1s linear; }    .box:hover{ width: 800px; }</style><div class="box"></div>

CSS3 Animation Properties Transition

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.