Dmytro Semenov
Dmytro Semenov
Transition between items is removed on purpose. Reasons: 1. On slow machines transitions do not look smooth, especially if large images are used and during the loading of images. 2....
I already explained in the first message why there won't be "move" transition and when "fade" transition will be implemented, please re-read it. There are a plenty of sliders that...
@bbnnt, issue will be closed when fade transition will be implemented.
@csborgman, > Royal Slider seems to do a very good job at doing a "move" slide transition with 1600px wide images. It doesn't. And RS doesn't force progressive loading and...
Thanks for sharing, I'm sure it'll help someone. I'll link it from the main site once I have some special page or section for third-party tools.
It would be nice to have alignment options. You can already partly do that via API, but it's not documented well yet. Not sure about named align options like "mid-left",...
You may use `contentLoadImage` event. ```js lightbox.on('contentLoadImage', ({ content, isLazy }) => { console.log(content.element); }); ``` If you wanna look how it works internally, the code is at https://github.com/dimsemenov/PhotoSwipe/blob/beb4810b17e90b8b01a8331974b4c66169cd23a5/src/js/slide/content.js#L121
This is a known issue, you can't do much about it, since browsers do not have API to reset the zoom level. Since PhotoSwipe can be closed via gestures like...
Your `lightbox.pswp.currSlide.data` for the video slide is just: ```js {html: '
you can do something like: ```js if (element && element.dataset.pswpIsVideo) { const videoURL = element.href; const imgPoster= element.dataset.pswpIsPoster; e.itemData = { html: ` `, photodata: element.dataset.photodata, }; } ``` and...