jQuery custom scrollbar plugin Nicescroll.js
Add-ons

Plugin description: A scrollbar customization plugin that beautifies scrollbars and supports multiple browsers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $('#boxscroll').niceScroll({ cursorcolor: "#dcdee0", // Scrollbar color cursoropacitymax: 1, // Scrollbar opacity, from 0 to 1 touchbehavior: false, // Makes dragging the scrollbar feel like using a touch device on a desktop computer cursorwidth: "8px", // Scrollbar width cursorborder: "0", // CSS definition for the cursor border cursorborderradius: "5px", // Cursor border radius in pixels (rounded corners) autohidemode: false, // Whether to hide the scrollbar. When set to true, the scrollbar is hidden by default and appears when the mouse hovers over it. zindex: "auto", // Set the z-index value for the scrollbar railpadding: { top: 0, right: -4, left: 0, bottom: 0 }, // Scrollbar position}); |
评论