You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it's not really an issue but rather asking for some advice for an enhancement of wagtail-simple-gallery.
In a picture collection on the web usually a user would expect when clicking on an image they then can swipe (on mobile) or click (on desktop) through the whole collection of available pictures. In case of wagtail-simple-gallery + lightbox, only the currently page of pictures will be available to swipe/click through. I am brainstorming about possibilities to load all pictures into lightbox to make that possible. I'm looking at this right now: https://github.com/feimosi/baguetteBox.js#showindex-gallery
A pragmatical approach would be to load all pictures from the collection, additionally to the paginated ones, into a hidden div (is that even possible?? my css knowledge is so bad ;-)) and then use .run and .show as described in the docs link above.
Do you have any better ideas? Wanna help me brainstorm?
The text was updated successfully, but these errors were encountered:
Hmm.. I would only pre-load the next 3-5 images from the current position I think. I don't really have much experience with js gallery plugins though. You can use ajax (js) to append more content into the .gallery element, but I'm not sure if baguetteBox knows about post-page load DOM changes automatically.
Hi, it's not really an issue but rather asking for some advice for an enhancement of wagtail-simple-gallery.
In a picture collection on the web usually a user would expect when clicking on an image they then can swipe (on mobile) or click (on desktop) through the whole collection of available pictures. In case of wagtail-simple-gallery + lightbox, only the currently page of pictures will be available to swipe/click through. I am brainstorming about possibilities to load all pictures into lightbox to make that possible. I'm looking at this right now: https://github.com/feimosi/baguetteBox.js#showindex-gallery
A pragmatical approach would be to load all pictures from the collection, additionally to the paginated ones, into a hidden div (is that even possible?? my css knowledge is so bad ;-)) and then use
.run
and.show
as described in the docs link above.Do you have any better ideas? Wanna help me brainstorm?
The text was updated successfully, but these errors were encountered: