Dmytro Semenov
Dmytro Semenov
There is no step-by-step migration guide, as API significantly changed. - In v5 initialization is simplified - you no longer need to add `pswp` structure HTML or bind click event...
That's a good point, I think the reasoning was that nobody uses `data-cropped` for anything, unlike `data-src`. I'll likely change it before the release.
To be honest, I have no idea how to remove that button via CSS or make it static.
@acwolff I'll post a plugin that adjusts an image based on its caption and vice-versa, in about a week or so.
Early version of caption plugin is here https://github.com/dimsemenov/photoswipe-dynamic-caption-plugin
That plugin is not designed for such type of long captions. If you just want a sidebar - use `paddingRight` JS option during initialization and position the caption via CSS...
Hi, it seems you're using an old version of PhotoSwipe, I'd suggest using a new one with simpler initialization. I'm not sure what are you trying to do with those...
Browser zoom is not something you're able to control, if it's critical and PhotoSwipe is the only thing on your page you may adjust viewport meta tag.
PhotoSwipe gets class `pswp--zoomed-in` when zoomed. You can also listen for event `zoomPanUpdate` or use click actions - https://photoswipe.com/click-and-tap-actions/
Technically you may add `opacity:0` to the image and then reveal it in the next frame after `contentAppendImage` event with CSS transition. But it breaks the progressive loading of the...