Repository navigation
PhotoSwipe v6 plans - need feedback #2170
Replies: 23 comments 33 replies
|
I'd love it if there were a plugin to detect/embed 360 degree panoramic photos, e.g. using https://aframe.io/examples/showcase/sky/ In principle that should even work with VR goggles |
|
That sounds GREAT! We're especially looking forward to thumbnail image navigation below or besides the main image in the modal! <3 I also agree that supporting 360° images and other media like videos would be fantastic in the future, but maybe as plugins to keep the core tiny? Thank you so much, you're genius @dimsemenov! As soon as it's ready, we'll work on a new Drupal CMS Open Source Module version on our side :) |
But Photoswipe will still be available as a complete "out of the box"-solution? |
|
Nuxt/Next integrations ? 😄 |
|
i think this was requested for years but videos, html or embeded youtube ones. any would be great, just like images with internal player and disabled zooming nad moving gestures maybe. thank you for your work |
|
What great news! I hope I can contribute in my own small way. First, I'd like to show and suggest an improvement to the closing animation. I'm having a problem when the image is drawn behind a floating object (fixed position) with a higher z-value. The animation is great, but it pops when it finishes. I solved this by modifying the base code, adding a second animation with a different timing curve, adjusting the opacity, and I feel it's much better. (I don't like use fade animation) Here's an example: Original ezgif-27df67b16747258b.mp4Modified ezgif-2f58c0a4068c6742.1.mp4This only add a minimal ghost effect at the end of the animation. Second, and this is a typical problem, I have a gallery of 30,000 images with no height or width. So I modified it so that it can be loaded without these dimensions. When the main image arrives, the DOM is updated, the Slide view is updated, and a fetch is sent to the server to save the data to the database and display it the next time. |
|
Feature request: Shareable URL that opens the gallery on the same slide Hi! Use case: At the moment, I’m generating URLs like:
This works, not sure if it's the best approach, and it relies on custom logic to parse Show a share icon on top right corner, and generate a shareable link for the currently page with active slide. Read that URL on page load and open PhotoSwipe at the correct slide. This would make deep-linking to specific photos much simpler and more consistent. Thanks! |
|
I added a number of features for my WordPress plugin (https://codeberg.org/askaaron/lightbox-photoswipe) like swipe left/right in desktop view and fragment navigation which also allows direct linking to single images similar to PhotoSwipe 4. Example: https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-5/#gid=1&pid=4 If you want to include this in the future to PhotoSwipe, I can assist with this as well. Just adding this as plugin may also be possible, but I did not create plugins for this yet, only for the fullscreen button, auto hiding of the UI and download button (feel free to use that for your own projects: https://codeberg.org/askaaron/photoswipe-fullscreen, https://codeberg.org/askaaron/photoswipe-auto-hide-ui, https://codeberg.org/askaaron/photoswipe-download) |
|
Thank you for your past and future work on PhotoSwipe! Here are some ideas for v6 based on how we use it in PhotoPrism with tens of thousands of photos/videos: Architecture & Components
Headless Core & UI
Virtualized Galleries
Component Split / Building Blocks
Plugins & Ecosystem
Migration & DX
Accessibility
Performance & Media
I'm happy to help with testing and provide additional feedback, if needed :) |
|
Hi :), We've been using Photoswipe on all our Shopify themes so far, great work on it! However, the usage always seemed a bit complex and that's the only dependency on which I constantly had to look the doc. What I would love:
And have the webcomponent a simple API so that we could open it like this: const instance = this.querySelector('photo-swipe').open({ index: 2 }); // Open the second imageHaving some convenience for instance to animate from a thumbnail: const instance = this.querySelector('photo-swipe').open({ index: 2, animateBounds: myImage }); // Open the second image with an animation from the myImage |
|
I would very strongly wish for the return of the inline gallery. I use it a lot, and right now this keeps me from ditching version 4 - while I would really want to use srcset and such, which are only working from version 5 on. That being said PS is by far the slickest image slider when used as an inline gallery, while keeping things working very reliably and performance wise impeccable. |
|
I would be happy to have the possibility to change to a masonry layout, like the one https://cv.domagic.site/posts/masonry-gallery-for-publii describes. |
|
I would like to see return of the Full screen button in the new revision. Yesterday I found that mobile Chrome has NO full screen button at all, so the annoying address bar eats too much space that is very important while making presentations. I found a workaround by installing Opera mini (btw it works fine and very comfortable), but I guess that it would be much better to have a native full screen support in the application. |
|
Just want to say thank you so much and can't wait to see the new version. Happy to test. All my requests have already been mentioned. ❤️ |
|
Hi there 👋 We’ve had PhotoSwipe on our radar for quite a while and really appreciate its lightweight and performance-focused approach. However, we haven’t used it in production yet, mainly because a few key features are currently missing for our typical project requirements. With that in mind, here are some ideas that could make v6 even more powerful:
If some of these are already planned — even better 😊 Thanks a lot for all the work going into this — really looking forward to seeing how v6 evolves! 🚀 |
|
I would really appreciate it if it were possible to add padding around the photos with custom CSS. I'm using WordPress plugin "Lightbox with PhotoSwipe" by Arno Welzel and tried some custom CSS:
That work's fine, but when opening the lightbox with a photo that has extreme landscape format like 3:1, a ghost image appears for one or two seconds:
You may try yourself: https://01.site-bakery.com/pure-standard-version/ See also discussion here: Arno Welzel says, the Maybe this can be solved in v6? Edit: I corrected links. |
|
The history (hash) function in v4 was extremely important to me, because the back button of mobile devices didn't leave the page, as it does now in v5. |
|
Hi, any update on development on a new version? |
|
Hey, loved your PhotoSwipe for many many years, it was smooth, fast, lightweight and easy to implement. But for my mobile experience i needed the hash pushState, so back button can close it without triggering page loads. I have also monitored this discussion here for some time to see the progress. I decided to create my own with claude code and i am now considering to publish it, not sure. Maybe there is something we can learn from. I spent a couple of days finetuning it, but tested only latest Chrome Canary so far: Demo is on this demo page: https://demo.cannabivo.com/ |
|
@dimsemenov Thanks for v6! The headless-core direction — and specifically the "support for images with no predefined size" bullet — is where a small external loading scheduler can plug in: the zoom-driven resolution upgrades PhotoSwipe does via srcset are exactly that workload — width ladder, per-(image,width) dedup, shared concurrency cap, no-downgrade delivery, "serve the best known width now, upgrade when the sharper one is decoded". I built one image-pump extracted from a production gallery with an imgproxy backend. If v6 wants to keep the core lean, "bring your own loading scheduler" could be a nice seam: the pump decides WHAT/WHEN to fetch, PhotoSwipe keeps owning gestures/zoom. Happy to prototype an adapter if there's interest. |
|
Any updates on V6? |
|
I want a function of rotating pictures, just like the photo album app of a mobile phone. Two fingers can rotate it. Of course, two fingers can also control the zoom, which will be more convenient to use on the mobile platform. |
|
Well, what have happened the last year ? Any progress or news ? Does look like this was a good intended update but newer happened ? |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey guys,
I'm developing the new version of PhotoSwipe. This thread is to gather some feedback, if you have ANY suggestions please post below.
TLDR new features:
Split into smaller components - ZoomView, PageView, and Dialog
All components will be headless; they will require only minor CSS that does not alter their appearance.
Primary use cases that I target:
New UI structure
UI will now be completely detached from the core. You may include a default one, or write your own.
The plan is to have several UI's to choose from that you may use as a starting point - some are raw CSS, some are Tailwind-based, some are designed for specific frameworks like React or Svelte.
The core PhotoSwipe class will be kept for backwards compatibility
I'm keeping it so it's easier to migrate to the new version if you don't want to bother with new components.
It will just combine all these packages and work similarly to how it worked before.
Transition between slides
The new version will support unobtrusive crossfade animation between slides, with an API to add other transition types.
Images with no predefined width/height
Many asked for this, and finally, this feature will be coming in the new version. However, when dimensions are not predefined, these features will not work:
srcsetsizesadjustmentModernize tech stack - rewrite from JS typedoc to Typescript
The current version is written in JS, which is not nice. There are also several bits of code that are there just to support old browsers - new version will use modern features - Web Animation API, Pointer Events,
<dialog>element, etc.All code for these components and plugins will be kept as monorepo.
I did try to use CSS Scroll Snap and only native browser features, but it just does not play well when you also try to implement zoom feature.
Video, Caption, Thumbnails, Tiled Deep Zoom plugins
These plugins will receive a major update so they're compatible with the new version.
Other minor features and improvements that are planned
(will be added as plugins, or as examples)
I'll publish the alpha version when it's good enough, so you can contribute.
If you have ANY feature requests or anything like that, please post below or email me.
All reactions