1 Repo
Utilities that track and revert CSS style changes after a temporary UI state ends.
Distinct from State Restoration: No candidate handles the specific pattern of capturing and restoring body styles for scroll locking.
Explore 1 awesome GitHub repository matching user interface & experience · CSS State Restorers. Refine with filters or upvote what's useful.
body-scroll-lock is a DOM scroll locking library and cross-browser scroll controller. It provides utilities to disable page scrolling while maintaining scrollability for specific nested elements across different browsers and devices. The project functions as a layout shift prevention utility and a web UI modal scroll manager. It includes mechanisms to add padding to the body when scrollbars are removed to prevent horizontal flickering and content shifting. The library covers scroll management for mobile navigation and modal interactions, enabling specific containers to remain scrollable whil
Tracks previous CSS styles to restore original body layout and overflow settings once a lock is released.