Location:Home > JS special effects code > Other front-end code

Example of using jquery.nicescroll to beautify the scroll bar

2022-02-14 59views
jquery.nicescroll is a beautifying scroll bar plug-in, an example of beautifying scroll bar usage. $('#content').niceScroll({ cursorcolor: "#ccc",//#CC0071 cursor color cursoropacitymax: 1, //scrollabar "visible" state, range from 1 to 0 touchbehavior: false, //Make the cursor drag and scroll like a touch device on a desktop computer cursorwidth: "5px", //The width of the pixel cursor cursorborder: "0", // CSS definition of cursor border cursorborderradius: "5px",//Use pixels as the cursor boundary radius autohidemode: false //Whether to hide the scroll bar });