body-scroll-lock
bigger-picture
body-scroll-lock | bigger-picture | |
---|---|---|
5 | 1 | |
4,007 | 189 | |
- | - | |
0.0 | 7.6 | |
about 1 year ago | about 2 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
body-scroll-lock
-
Next 13: how to disable scrolling on body when modal is open?
i built a modal system at work that uses this, except using https://github.com/willmcpo/body-scroll-lock to lock/unlock when a modal is displayed...you have to also limit scrolling on the html tag for full support across all devices
-
How to lock body scroll properly on IOS when a "fixed" positioned overlay/modal is open?
Tested live demo of body-scroll-lock (body is still scrollable in IOS)
-
WebKit Features in Safari 16.0
Overscroll Behavior will make my life so much easier when I have to implement a modal that can scroll. You need stuff like body-scroll-lock [1] which will do a lot of different tricks and has to be implemented just right. Now we only need to add overscroll-behavior: contain; and we're done.
[1]: https://github.com/willmcpo/body-scroll-lock
-
Deactivate scrolling of body while lightbox is visible
This is actually a tricky problem when you factor in all browsers and mobile devices. This little library should help: https://github.com/willmcpo/body-scroll-lock
bigger-picture
-
Would love some feedback on a lightbox / modal library I'm making
Github: https://github.com/henrygd/bigger-picture
What are some alternatives?
keen-slider - The HTML touch slider carousel with the most native feeling you will get.
glightbox - Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
react-native-modal-datetime-picker - A React-Native datetime-picker for Android and iOS
react-gallery-carousel - Carousel component 🎠 supporting touch, mouse, keyboard, thumbnails, fullscreen, lazy loading, SSR and customisations. 💻 Live editor: https://yifanai.com/rgcd1
formio.js - JavaScript powered Forms with JSON Form Builder
eins-modal - Simple to use modal / alert / dialog / popup. Created with pure JS. No javascript knowledge required! Works on every browser and device! IE9
formio - A Form and Data Management Platform for Progressive Web Applications.
photoviewer - 🖼️ A JS plugin to view images just like in Windows.
react-layer-stack - Layering system for React. Useful for popover/modals/tooltip/dnd application
fancyBox - jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
react-ios-switch - React switch component https://clari.github.io/react-ios-switch
PhotoSwipe - JavaScript image gallery for mobile and desktop, modular, framework independent