Simple and lightweight jQuery scrollbar plugin scrollBar.js

Add-ons
2026-07-25 22:28 4 次浏览 • 0 次下载 13.7KB
Simple and lightweight jQuery scrollbar plugin scrollBar.js

Usage:

1. Required files to include:

1
jquery.js,scrollBar.js,scrollBar.css;

2. Initialization:

1) jQuery selector

1
.scrollBar();// This is the most basic initialization method. The scrollbar uses the default style.

2) jQuery selector

1
2
3
4
5
.scrollBar({
barWidth: 10, // Scrollbar width (Enter any desired numeric value here. The default is 10, meaning 10px.)
position: "x,y", // Set to "x" for a horizontal scrollbar only, "y" for a vertical scrollbar only, or "x,y" for both horizontal and vertical scrollbars (scrollbars only appear when the content exceeds the container).
wheelDis: 15 // Distance to scroll up or down with each mouse wheel movement. The default is 15 and can be changed as needed.
});

3) Note: After initialization, this scrollbar plugin automatically appears when the content exceeds the container. No scrollbar is displayed when there is insufficient content.

星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare