Lightweight custom scrollbar styling plugin with IE compatibility (original work)
Add-ons

Plugin description: This plugin uses div elements to create custom scrollbars and overlays the browser's native scrollbars. It offers good compatibility, simple operation, and flexibility. We hope everyone can communicate and learn respectfully while solving practical application problems.
Last updated: 2018/1/10 4:19:45 PM
Changelog:Optimized the mouse-down state so scrolling continues even when the mouse moves outside the scrollbar thumb.
Last updated: 2017/12/29 9:24:19 AM
Changelog:Fixed a bug in the X-axis dragging of scrollsXY(box) when dragging to the far right. The parameter was incorrect!
Usage
Step 1: Include scroll.min.js;
Step 2: Build the scrollable area according to the corresponding structure;
Step 3:
1 2 3 4 | scrollY("#scrollbox");// Single Y-axisscrollsY(".scrollbox");// Multiple Y-axesscrollsX(".scrollXbox");// Multiple X-axesscrollsXY(".scrollXY");// Multiple XY axes |
Choose the appropriate event to call according to your project's page requirements.
评论