-WebKit-Transition (ie is not supported) is used to make the changes less rigid and achieve a relatively peaceful transition.

Source: Internet
Author: User
<Style type = "text/CSS"> Div {width: 200px;} H2 {Font: 400 40px/1.5 Helvetica, verdana, sans-serif; margin: 0; padding: 0;} ul {list-style-type: none; margin: 0; padding: 0;} li {Font: 200 20px/1.5 Helvetica, verdana, sans-serif; border-bottom: 1px solid # CCC;} li: Last-child {border: none;} li a {text-Decoration: none; color: #000; display: block; width: 200px;-WebKit-transition: font-size 0.3 s elapsed, background-color 0.3 s elapsed;-moz-transition: font-size 0.3 s elapsed, background-color 0.3 s loading;-o-transition: font-size 0.3 s loading, background-color 0.3 s loading;-MS-transition: font-size 0.3 s loading, background-color 0.3 s loading; transition: font-size 0.3 s loading, background-color 0.3 s loading;} li a: hover {font-size: 30px; Background: # f6f6f6 ;} </style> <div> <H2> helvetilist </H2> <ul> <li> <a href = <"#" <> Zurich </a> </LI> <li> <a href = <"#" <> Geneva </a> </LI> <li> <a href = <"#" <> Winterthur </a> </LI> <li> <a href = <"#" <> Lausanne </a> </LI> <li> <a href = <"#" <> Lucerne </a> </LI> </ul> </div>

PS:This attribute can be divided into multiple CSS attributes: (1)-WebKit-transition-timing-function can define the animation change time curve.

-WebKit-transition-timing-function: memory-out, cubic-bezr (x1, Y1, X2, Y2 );
(2)-WebKit-transition-Property specifies the property to be changed
-WebKit-transition-property: opacity;
(3)-WebKit-transition-Duration: specifies the time when a change occurs.
-WebKit-transition-Duration: 2 S;
-WebKit-transition-delay: specifies the time delay before the start of the transformation.
-WebKit-transition: opacity 500 ms timeout-out 100 ms;

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.