plainJS

Libraries / UI

HC-Sticky

JavaScript library that makes any element on your page visible while you scroll.

No-build verifiedActive0 dependenciesScript tagMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size9.2 KB minified, 3.7 KB gzipped (dist/hc-sticky.js)
LicenceMIT
Dependenciesnone
Last releasev2.3.0, March 2026
Last activity2026-03-12 (Active)
Stars460 on GitHub
Formatsclassic script (global hcSticky)
CDN hits5.5 million a month on jsDelivr
npm downloads6,438 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v2.3.0 in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hc-sticky.js"
        integrity="sha384-t2eoT99bL71311IT1zCOdyt0kBz8EqzTXBeZ1suEEnr23tek1GvzhdRjxos1deWH" crossorigin="anonymous"></script>
Advertisement

Entry 182 in the directory. Facts refreshed monthly; last run 2026-10-30.