Dmytro Semenov
Dmytro Semenov
@arielk, I'm currently working on v5 version which includes a module that transforms DOM elements into a gallery, which will allow implementing some of the features described in this article....
@heyallan yea, it's available in 5.0 (https://github.com/dimsemenov/PhotoSwipe/issues/1749)
@@heyallan you're looking at the older version, 5.0 beta demo is here https://photoswipe.com/v5/docs/getting-started/
@heyjoecampbell there will be an official WP plugin in the future, but for now, I focus on finishing the non-WP version.
@ErPrateekSingh v5 does not require any additional HTML, styling is done in a different way, you can read more about it here https://photoswipe.com/v5/docs/styling/ If you're having trouble implementing/adjusting some UI...
> If I have this in separate js file which is build by webpack how do I assign dynamic items to it like product images please? It's up to you...
I'm unable to reproduce it on my test, do you have a link to a reduced example? I suppose we can change: https://github.com/dimsemenov/PhotoSwipe/blob/b09cba351a90f42086a7c2881066e4634201c5fb/src/js/util/util.js#L6-L24 to ```js /** * @template {HTMLElementTagName |...
You may add `type="button"` to PhotoSwipe button elements. Or just don't put `.pswp` in form, you can add it dynamically anywhere, just before the initialisation.
No. If the problem will come up often - I'll implement JS-based solution.
I think https://github.com/dimsemenov/PhotoSwipe/commit/96a4d674e7542da364b578347c6c312966d16d24 and https://github.com/dimsemenov/PhotoSwipe/commit/bc23c79535e61de80ed011ba18cf9deaf0ee9f09 should fix it. I've made a 5.0.1 beta build, please test if you'll have a minute. Pushed the changes to the demo site as well....