Effects of transition-duration in CSS3 on the two transition time of hover

Source: Internet
Author: User

transition-duration This parameter is the set transition time, and the transition-duration is placed in which class. Then, when this class is enabled, it will transition according to the time set by Transition-duration.

Like what. There are classes. A and. a:hover
1. Assume that only set in. Atransition-duration:3s; the words. Then when the mouse overrides this element and the mouse leaves the element. The transition time is 3s.


2. Assume that 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.

Effects of transition-duration in CSS3 on the two transition time of 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.