right now I am trying use the Photoswipe, but I am facing a problem:
Uncaught TypeError: Cannot read property 'firstChild' of undefined(…) ...photoswipe.min.js:4
getChildByClass @ photoswipe.min.js:4
init @ photoswipe.min.js:4
openPhotoSwipe @ private.js:30
(anonymous function) @ private.js:33
Thanks for any hint
I have this problem too, help is very appreciated.
This Codepen got me going: https://codepen.io/dimsemenov/pen/ZYbPJM. Very nice photo swiper, awesome piece of work!
so You want to say, that this code works on your website?
Your first instance argument (pswpElement) need to be DOM Element, like a document.querySelector or jquery $('selector')