-webkit-overflow-scrolling:touch Fast rolling rebound effect

Source: Internet
Author: User

Many for mobile's HTML5 Web pages now have fast scrolling and rebound effects, and it looks like the efficiency of the native app is a fight.

To achieve this, it is simple to add a single line of CSS code to the element:


 

In fact, Safari really uses native controls, and for pages with-webkit-overflow-scrolling, a uiscrollview is created that provides a child layer for use by the rendering module. (specifically beyond the Web front-end category is not described here)

We just need to know the properties of CSS-webkit-overflow-scrolling is really creating a system-level control with hardware acceleration, so it's very efficient.

But this is relatively more memory-intensive, preferably when a very large area of overflow is produced.

-webkit-overflow-scrolling:touch Fast rolling rebound effect

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.