GeezerVison is showing github.com — PhotoSwipe v6 plans - need feedback · dimsemenov/PhotoSwipe · Discussion #2170
PhotoSwipe v6 plans - need feedback
#2170
Dec 4, 2025
·
22 comments
·
33 replies
Discussion options
-
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 ZoomView, PageView, and Dialog
- Headless core - UI will be completely separated
- Animation between slides
- Support for images with no predefined size
- Modernizing tech stack - rewrite to Typescript, dropping old browser support
- Updating Video, Caption, Tiled Zoom plugins
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:
- Single zoomable image on a page (only requires ZoomView)
- Lightbox that shows a single zoomable image (only requires Dialog + ZoomView). You also have an option to use your own dialog component.
- Fullscreen image gallery (or almost fullscreen, with sidebars, think Google Photos or Lightroom-like layout).
- Such a gallery can be opened in Dialog or embedded "inline" on a separate page.
- Developers may use CSS View Transition if they need an animation to a separate page.
- Gallery should support virtualization - display thousands of photos at a time
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:
- "zoom" opening transition for the dialog
- Image placeholders
- Dynamic
srcset sizes adjustment
Modernize 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)
- Vertical layout
- RTL support
- Open in native fullscreen immediately (if available)
- Thumbnail/bullet navigation
- API to add stuff over images (such as annotations)
- Images in PageView will be loaded a bit differently - center image will receive higher priority, nearby will start loading only after current slide is loaded.
- Shadow DOM support and usage as webcomponent example
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.
|
You must be logged in to vote
Replies:
22 comments
·
33 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
You must be logged in to vote
6 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Here's how Immich does it: the thumbnails have an oval circular arrow icon as a hint, and when you click it, you get the immersive viewer with always-on controls:
https://immich.majid.org/s/pano-samples
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
Absolutely agree - I also would like to see panoramas support in the next version, atleast simple cylindrical. Now I am using the Tiled Deep Zoom plugin (btw, it's a brilliant addition, that works very well) to zoom panos enough and then draggin them from side to side, dreaming about a looping. Here is example: https://yesbird.online/photo/panex.html
As for mobile interface, why not consider two-finger swipes ? On desktop it's possible to use arrows for sliding and rotate panorama by mouse dragging.
Many thanks for this HQ product, looking forward to try new alpha !
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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 :)
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
Gave this a go but it doesn't seem compatible with datasource-based entries, which I use for customizing locking my thumbnail order in with my image order. Have lodged an issue separately now to not hijack this thread.
I'm sure it's great for the base use case! But look forward to full integration in v6.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Split into smaller components - ZoomView, PageView, and Dialog
But Photoswipe will still be available as a complete "out of the box"-solution?
We have had very negative experiences with Vidstack in this regard 😅
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I guess you mean it should be easily to use Photoswipe pre-built without extra build-step in a script-tag from local library (GDPR) or CDN?
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
The license for the core part of the library will not change.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Nuxt/Next integrations ? 😄
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I don't think that's a job for @dimsemenov, but for the open-source community! Nuxt at least has a module concept, so anyone can start writing a module integration: https://nuxt.com/modules
(And of course I'd love it ;))
|

Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
There are several levels to framework integrations. I'm improving some:
- UI is now detached from the core - you'll be able to render it with whatever component library you want. I will provide examples for various frameworks.
- ZoomView can be initialized from the DOM, so you can lazily initialize and SSR it
- PageView uses virtualization similar to Tanstack Virtual, where you get a function that should render a slide.
- However, default slide renderers are vanilla, and I don't see a point of rewriting them to x framework as primary usecase is to render a simple image.
- Stuff like captions and meta information is generally placed in a sidebar, which can be rendered outside of PhotoSwipe.
- It's possible to use stuff like React portals to render slide content itself via React
Also, note that PhotoSwipe is not trying to be "carousel", for basic carousel - please just use CSS scroll snap.
I'm not sure yet if I should create hooks like usePhotoSwipe or leave that to the community. For now, I'll focus on the vanilla version.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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.mp4
Modified
ezgif-2f58c0a4068c6742.1.mp4
This 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.
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Feature request: Shareable URL that opens the gallery on the same slide
Hi!
I implemented this with custom code, but I’m not sure it’s the best approach, so I wanted to suggest it as a native feature.
Use case:
On a normal web page that contains a PhotoSwipe gallery, a user may be viewing (for example) photo #5 and wants to share a link with someone. The shared link should open the same page and automatically position PhotoSwipe on that exact slide.
At the moment, I’m generating URLs like:
/photo-galleries/1#slide=5
This works, not sure if it's the best approach, and it relies on custom logic to parse #slide= and open the correct index. It would be great if PhotoSwipe offered a built-in way to:
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!
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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
- Keep the new zoom/page/dialog split, and add low-level primitives (gesture engine, viewport store, item resolver) that don't depend on the shipped DOM.
- Make UI packages optional/tree-shakeable; typed events instead of class-name hooks.
- Native RTL language support: mirror navigation/swipes/keyboard without forcing users to reverse item arrays.
Headless Core & UI
- Clear hook/slot surface for overlays, captions, sidebars, toolbars; avoid DOM coupling.
- Allow UI parts to exist in different DOM roots or teleports while remaining subscribed to the core state.
- Built-in caption renderer hook (with sanitization toggle and async resolver) so a plugin isn't required for basic captions.
Virtualized Galleries
- Support
getItemCount() + async resolveItem(index) so the lightbox can open items that are not mounted; allow the list to be extended while preserving currIndex.
- Provide a tiny URL/history helper that syncs the current slide to a hash or search term for back and forward navigation with infinite scrolling.
- Optional LRU cache controls to trim decoded images/posters on memory pressure.
Component Split / Building Blocks
- Expose per-slide header/footer render callbacks for actions (select/edit/download) instead of re-implementing the top bar.
- Offer a small "slide state" store (zoom, playing, selected) that UIs and plugins can subscribe to.
Plugins & Ecosystem
- Typed plugin API with lifecycle hooks; publish capability flags.
- Lightweight compatibility layer so community plugins (video players, 360°, annotations) can assert support across minors.
Migration & DX
- Include a mapping guide from v5 options to v6 props/events, deprecation warnings in dev mode, and a codemod/lint rule for renamed options.
- Maintain the "classic" wrapper, but issue a warning when v5-style item arrays are used; include a helper to convert to the new resolver API.
Accessibility
- Default focus trap, dialog roles, labelled buttons,
aria-keyshortcuts, and prefers-reduced-motion friendly transitions in packaged UIs.
- Headless hooks for focus management and per-slide
aria-label/aria-describedby; right-to-left (RTL)-aware keyboard and swap handling.
Performance & Media
- Per-slide opt-out of default gesture handlers to keep custom HTML and video controls usable.
- Preload policy setting (current +- N, or none) and cancel hooks for rapid swiping.
- Deep-zoom hook for dynamic tile URLs and viewport change events.
I'm happy to help with testing and provide additional feedback, if needed :)
|
You must be logged in to vote
2 replies

Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
That's amazing feedback, thank you. I did miss some of these.
Current plan is such API, got any thoughts about it?
import { PageView } from "@photoswipe/page-view";
import { MouseWheelZoomPan, ZoomView } from "@photoswipe/zoom-view";
import { ImageContent } from "@photoswipe/core";
const pageViewRootElement = document.getElementById("..");
const data = getImages({
count: 100,
maxWidth: 1200,
});
const testPageView = new PageView({
viewportElement: pageViewRootElement,
slideCount: data.length,
slideRenderer: (index) => {
const content = new ImageContent(data[index], {
imageRevealMode: "fade",
imageRevealDuration: 500,
});
return new ZoomView({
content,
maxZoomLevel: 3,
plugins: [MouseWheelZoomPan.create()],
});
},
});
testPageView.on('change', () => {
const slideContent = testPageView.currSlide;
if (slideContent instanceof ZoomView) {
console.log(slideContent.zoom); // access ZoomView API
}
});
// testPageView.goTo(5);
|

Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
The draft looks clean and promising! Here are some quick thoughts on it:
- The modular imports are great, as is the fact that
ZoomView is a building block. Could the slideRenderer accept async/Promise results? This would allow for lazy fetching of slide metadata or preloading of tiles before instantiating the view.
- Consider letting
slideRenderer receive a context object containing an index, id, viewportSize, and maybe a shared "services" object (cache, logger, history). This would help keep things in sync without globals.
- Allow
slideCount to be updated at runtime, and provide replaceSlides({ start, count, items }) so virtualized views can extend/trim data without tearing down the instance. If slides have stable IDs, an optional getSlideId(index) or key would help maintain per-slide state.
ImageContent looks good - could there also be a generic HtmlContent/MediaContent for videos/interactive slides? That way, we wouldn't need to subclass ZoomView just to display custom elements. Having a per-slide option to opt out of default gestures would also be helpful for mixed-media slides, especially if they use custom HTML/video controls.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
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:
- If it could rely on native
<dialog>
- If we could use it as a web component, for instance:
<photo-swipe>
<div slot="item"><img /></div>
<div slot="item"><img /></div>
<div slot="item"><img /></div>
</photo-swipe>
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 image
Having 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
|
You must be logged in to vote
4 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I wonder why you don't create smaller thumbnails as preview and link the real images like it is supposed to be:
<div slot="item"><a href="fullsize1"><img src="thumbnail1" /></div>
<div slot="item"><a href="fullsize2"><img src="thumbnail2" /></div>
<div slot="item"><a href="fullsize3"><img src="thumbnail3" /></div>
This is is way how image galleries usually work - because otherwise you would have to load a lot of data for full sized images even when visitors don't even open the images in a lightbox.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
First I don't need thumbnails, second, v4 pre-loads at most 3 images (so there's always the one to the right and the one to the left pre-loaded), which makes it operate very effectively. Perfect for my usecases.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Then I may have misunderstood, what you want to achieve. The code you have shown above shows 3 images in the page, before the lightbox is even opened - but instead the images are not visible on the page at all but only in the lightbox?
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I did not share any code. Just using the gallery inline, as kind of simple carousel. It is just working fine this way in version 4. What I am up to is being able to use srcset in a semantically correct way inside img elements to achieve better leverage in balancing image quality and weight. Version five has it, but no inline gallery. Like @dimsemenov wrote it will come with version 6. Meanwhile I now use double resolution to solve density 2x issues, which will be fine to let go, when srcset is applicable with my setup, since it quite severely breaks my performance goals regarding images.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
You must be logged in to vote
5 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
When had PhotoSwipe 4 an inline gallery? Are you sure, this was a feature of PS 4 and not extra code you added?
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
It was ditched with version 5, the release notes as well as the documentation explain in short, that it was because it were "rarely used". Well but it is used))) and working very well.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
@smplrtrn
You'll be able to embed the gallery "inline" in the new version, but gestures will likely be locked. Various mapping libraries have a feature called "cooperative gestures" that allows zooming and panning but only with 2 fingers:
I'll try to make sure that new version has API that would allow similar behavior.
It is technically possible to allow 1 finger pan (for example - if image is at bottom edge and user pans towards bottom - we yield the gesture to native browser scroll). But this adds a lot of complexity and forces into using touch events over pointer events. Having nested scrollviews is kinda bad ux in general - user can accidentally zoom/scroll the page when they wanted to zoom the image etc.
And if you don't need any zoom - your best best in just using native CSS scroll snap.
Do you have any examples of websites or native apps that have "inline" image zoom that works well on mobile?
|

Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
@dimsemenov Oh thanks! That's good to hear.
I'd rather not use zoom features, just using PhotoSwipe inline as sort of carousel without navigation, only left and right clicks and/or swipes, which is working just fine.
https://coido.de is currently the only openly accessible example where I am using PS inline. Image handling there has become quite rusty over the years, so the availability of srcset would help a lot with modernizing stuff, without switching to a completely different architecture. I have built static sites with dynamic islands (i. e. some ajaxing, masonry and PS in this particular case) for more than twenty years using Ikiwiki, which is mainly written in Perl, and is extremely robust because of that)))
Currently I am eager to be able to switch to srcset within the inline gallery, since it allows for a good balance of image quality and weight leveraging 2x, 3x density images as well as a variety of formats and the like without hacking my way through v4 to use srcset inside the picture element, which is semantically not correct for this use case.
So if I can see srcset support coming for my use case I will plan for some intermediate solution to ramp up image quality in another compatible way in the meantime - and change versions cleanly when 6 will be available. I worked with a bunch of carousel solutions, but had none of them perform as reliable as PS, even with videos, html and the like.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Just a note: I have made quite some progress in modernizing the image pipeline within ikiwiki (img.pm and attachment.pm in conjunction with imagemagick). So now there is support for avif, webp, automated cropping, resizing and quality tweaking inside the standard image rendering of ikiwiki to provide PS with nine versions per image (avif, webp, jpeg, 1x, 2x, 3x) - all ready to be provided inside a picture element for each image.
I re-checked my demand for semantically correct usage of the picture element, and albeit not using it for layout, the element is still perfectly valid for density and variants of image formats.
So if development of PS sticks with the possibility to integrate via picture element, and provide a gallery function again (no lightbox) - everything is ready to test here.
If you need any other form of support, let me know.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
You must be logged in to vote
1 reply
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
I believe it's outside Photoswipe function. Masonry is gallery that shows many images in page. Photoswipe is lightbox that shows fullscreen image with slider. But you can use Masonry + Photoswipe.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Many thanks, works fine !
It was exactly what I was looking for, download is also very useful.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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. ❤️
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Hi there 👋
First of all — it’s great to see that a new major version of PhotoSwipe is in the works. Really exciting news!
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:
- iFrame support (e.g. embedded YouTube videos, Google Maps, or other external content)
- Improved video support and especially proper mixed content handling — meaning images and videos within the same gallery
- Optional Swiper.js integration/support for more flexible slider behavior
- Hash navigation for deep linking to specific slides
- Better support for responsive images, including built-in handling for next-gen formats like AVIF and WebP
If some of these are already planned — even better 😊
In our case, especially iframe and mixed media support would make PhotoSwipe a very strong candidate for us.
Thanks a lot for all the work going into this — really looking forward to seeing how v6 evolves! 🚀
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Another comment on "hash navigation", I also implemented a solution described above, not sure if it's the best approach. It would be nice to have this kind of functionality on the next version.
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
|
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:
.pswp__img { background-color: white !important; padding: 80px; border-radius: 84px; }
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:
https://wordpress.org/support/topic/ghost-image-when-opening-the-lightbox/
Arno Welzel says, the padding conflicts with PhotoSwipe core code.
Maybe this can be solved in v6?
Edit: I corrected links.
|
You must be logged in to vote
2 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Uuups, sorry. And thanks!
I'm new here and obviously still had to learn how to insert a link. :-)
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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.
I'm still using v4 because of history, fullscreen, download and image caption.
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Hi, any update on development on a new version?
|
You must be logged in to vote
1 reply
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
Hey, still working on it, but no ETA yet sorry
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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/
|
You must be logged in to vote
1 reply
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
-
Uh oh!
There was an error while loading. Please reload this page.
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
@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.
|
You must be logged in to vote
0 replies
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
You must be logged in to vote
1 reply
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
work in progress, no date yet sorry
|
Comment options
-
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
You must be logged in to vote
0 replies
|