You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am willing to sync the PhotoSwipe gallery to the Swiper slider which has the images I'm clicking onto to open the PhotoSwipe gallery.
But as I have to use the DOM init in the demo/doc (http://photoswipe.com/documentation/getting-started.html - the "How to build an array of slides from a list of links" part), I'm having a real hard time to figure out how to have access to the PhotoSwipe instance to get the current index of the slide (for example) as shown in the API documentation with pswp.getCurrentIndex(); where pspw is the current instance initialized with var pswp = new PhotoSwipe( /* ... */ );.
Both libraries have to communicate so having everything scoped into the initPhotoSwipeFromDOM won't help.
I'm trying to find some help to not entirely rewrite it but tweak the current given code instead.
The text was updated successfully, but these errors were encountered:
I am willing to sync the PhotoSwipe gallery to the Swiper slider which has the images I'm clicking onto to open the PhotoSwipe gallery.
But as I have to use the DOM init in the demo/doc (http://photoswipe.com/documentation/getting-started.html - the "How to build an array of slides from a list of links" part), I'm having a real hard time to figure out how to have access to the PhotoSwipe instance to get the current index of the slide (for example) as shown in the API documentation with
pswp.getCurrentIndex();
wherepspw
is the current instance initialized withvar pswp = new PhotoSwipe( /* ... */ );
.Both libraries have to communicate so having everything scoped into the
initPhotoSwipeFromDOM
won't help.I'm trying to find some help to not entirely rewrite it but tweak the current given code instead.
The text was updated successfully, but these errors were encountered: