memob0x

memob0x/scroll-padlock

🔒 CSS variables-based scrollbars locker

TypeScript
22
0
MIT License

ScrollPadlock is a lightweight JavaScript library that enables CSS-first control over HTML element scrolling by dynamically injecting CSS variables with scrollbar measurements. It's designed for developers who want to lock scrolling on elements while maintaining precise layout control, particularly useful for modal overlays or fixed-position components where scrollbar width compensation is needed. The library requires no dependencies, works in all modern browsers, and provides customizable options for targeting specific elements and formatting CSS variables.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

memob0x's profile
memob0x
325 contributions
dependabot[bot]'s profile
dependabot[bot]
14 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet