Effects of transition-duration parameters on the transition time of the CSS3 in the first and second hover

Source: Internet
Author: User

transition-duration This parameter is set to the transition time, the transition-duration is placed in which class, then when this class is enabled, it will be transition-duration set time to transition.

For example, there are classes. A and. a:hover
1. If set only in. Atransition-duration:3s, then the transition time is 3s when the mouse overrides the element and the mouse leaves the element.
2. If transition-duration:3s is set in. A; Set the transition-duration:6s in the. a:hover; Then when the mouse overrides the element (that is, the element style changes to. a:hover), the transition time is 6s, when the mouse leaves the element(that is, the element style becomes. A process)The transition time is 3s.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Effects of transition-duration parameters on the transition time of the CSS3 in the first and second hover

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.