jQuery Scroll Fixing Plugin fixedScroll.js (Original)

Add-ons
2026-07-25 22:45 4 次浏览 • 0 次下载 5.6KB
jQuery Scroll Fixing Plugin fixedScroll.js (Original)

Usage instructions

1. Include the required files: jQuery and fixedScroll.js.

1
2
<script src="fixedScroll.js"></script>

2. Basic Usage

1
$(".box").fixedScroll()

3. Parameters

  • navEls: Class name of the navigation elements; hookEls: Elements to scroll to when the corresponding navigation item is clicked

  • hookOffset: Top offset of the scroll target elements

  • offset: Top offset of the fixed element

  • stickEndEl: Element marking the end position of the fixed element

  • callback(isFixed): Triggered during scrolling. A return value of isFixed = true indicates that the element is fixed; false indicates that it is not fixed.

4. Methods

1
resizeHeight(): // Recalculate when the height changes
星河码客

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

关于本站

联系我们

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

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

Powered by Nuxt · Deployed on Cloudflare