Description
better-scroll is a JavaScript library for smooth scrolling areas in mobile web pages, and it also works in desktop browsers. Its core is inspired by iscroll, and its APIs are largely compatible with iscroll, but it adds more features and aims for better scrolling performance. You install it with npm, or load it from a CDN such as unpkg. Version 2 is split into packages: the full-featured build with plugins, and @better-scroll/core for the core scroll engine alone. You create a scroll instance on a wrapper element, and options such as movable and zoom turn on those behaviours. The documentation covers installation, getting started, the principle of scrolling, plugins, use with MVVM frameworks, and contributing, along with an online one-click setup and a real project example. Chinese-language docs are available too. The project notes that version 1.x is no longer maintained, so new projects should use version 2. The source is on GitHub under the ustbhuangyi account.…
Highlights
- Smooth scrolling for mobile web pages
- Largely compatible with iscroll APIs
- Plugin system with a full-featured build
- Core-only package for a smaller footprint
- Install with npm or a CDN
Ratings & Reviews
No ratings yet
Be the first to rate better-scroll.
People also visit
better-scroll FAQ
What is better-scroll?
A JavaScript library for smooth scrolling areas on mobile web pages, inspired by iscroll.
How do I install it?
Run npm install better-scroll, or load the script from unpkg in the browser.
Is version 1 still supported?
No. The site says 1.x is not maintained, so you should migrate to version 2.
Is it compatible with iscroll?
The site says its APIs are compatible with iscroll on the whole, and it adds further features.


















