Sign inSign up

jQuery custom scrollbar plugin Nicescroll.js

Add-ons
2026-07-25 22:21 2 views • 0 downloads 26.0KB
jQuery custom scrollbar plugin Nicescroll.js
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
});