![]() ![]() ![]() I found a workaround to that, I'll post it below since this was the only post about the topic I found and it can help someone in the future. lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile. There are 26 other projects in the npm registry using lightgallery. Start using lightgallery in your project by running npm i lightgallery. if the gallery was opend while the page was still moving (smoothing), after closing, it jumped to the point where smoothing would end. Latest version: 2.7.1, last published: 8 days ago. What did work was setting smooth() to 0 in onBeforeOpen and setting it back to a desired value in Lightgallerys onBeforeClose hook. just download Visual LightBox florida football player injured today. ScrollSmoother.paused(true) in Lightgallerys onBeforeOpen hook didn't help, it paused on position 0. lightGallery allows you to create animated thumbnails for your gallery with the. This occurred only when opening Lightgallery for the first time (still not acceptable ). Before closing Lightgallery, the page jumped to the top and then scrolled back to the gallery container. I had sort of a similar problem in Nuxt3 with Lightgallery and ScrollSmoother. See the Pen PoBqpeO by akapowl ( on CodePenĪlso, if you update the lightGallery version you are using to at least version 2.5.0, apparently an option comes available that lets you prevent the resetting of the scroll-position altogether which would likely make the blocking of the scroll unneccessary to begin with. Here is a link to the events available with lightgallery: Tweak: lightGallery script update to 1.3.4 1. ![]() New: useLeftForZoom option Tweak: lightgallery script update to 1.3.7 1.0.1. Download links with optional Download Attachments support. A customizable, modular, responsive, lightbox gallery plugin for jQuery. You will need to find the event working best for you, to toggle ScrollSmoother.paused() at the right time, if you want to disable the scroll while the gallery is open. Lightgallery is a lightweight, mobile-friendly Responsive Lightbox extension for displaying images in a fullscreen lightbox with unique CSS3 transitions. I can see the issue described, but as Rodrigo mentioned, you will definitely need to update your GSAP version first and yes, it looks like it is a problem because you can scroll while the gallery is open, and when it closes it will move back to the position it was before opening (or something along those lines). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |