To move a page, use the CSS3 animation

Source: Internet
Author: User
Tags set time

When it comes to animations, we typically use animate () in jquery;

In the PC browser, it is very convenient, due to the high performance of the PC, this constant modification of the DOM does not have much problem, but on the phone side is different.

Using animate in jquery or zepto on your phone will still bring some small lag.

Although the hardware performance of the mobile platform is slightly worse, but the WebKit core has a large share.

Like a simple modification of a CSS property can be given to transition to do (prefix), with the transition monitoring properties, as long as the modified value, will automatically follow the set time to complete the excessive, note that this is done by the browser rendering engine, does not cause re-flow and re-draw so it looks smoother.

and complex animation will be handed to CSS3 in the animation (prefixed) and @keyframes to complete.

Set the design of each time point, you will think of old-fashioned cartoons.

To move a page, use the CSS3 animation

Related Article

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.