Home > Web Front-end > HTML Tutorial > The impact of the transition-duration parameter in CSS3 on the two transition times before and after hover_html/css_WEB-ITnose

The impact of the transition-duration parameter in CSS3 on the two transition times before and after hover_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:39:24
Original
1673 people have browsed it

The transition-duration parameter is to set the transition time. In which class the transition-duration is placed, then when this class is enabled, the transition will occur according to the time set by the transition-duration.



For example, there are classes .a and .a:hover


1. If If you only set transition-duration: 3s; in .a, then the transition time will be 3s when the mouse covers this element and when the mouse leaves the element.


2. If transition-duration: 3s is set in .a; and transition-duration: 6s; is set in .a:hover, then when the mouse covers the element (That is, the process of the element style changing to .a:hover) The transition time is 6s, and when the mouse leaves the element (that is, the process of the element style changing to .a), the transition time is 3s.


Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template