Questions tagged [photoswipe]

PhotoSwipe is a JavaScript image gallery for mobile and desktop, modular, framework independent.

PhotoSwipe is a javascript-based image gallery for mobile and touch devices. The source code is available on GitHub.

350 questions
1
vote
2 answers

Implementing RTL on a slider plugin

After several requests ignored by the developer to support RTL, I'm trying to do it myself. Reversing the array order was pretty straightforward: self.items = !!(_options.rtl) ? _items = items.reverse() : _items = items; // Reverse the array for…
eozzy
  • 66,048
  • 104
  • 272
  • 428
1
vote
0 answers

Photoswipe set image caption with html code

I'm using drupal7 Photoswipe module which uses Photoswipe jQuery plugin to build a view and display a gallery of photos. Currently Photoswipe allows only to display image title as image caption. Also to display other text fields from the same…
Pierre_C
  • 81
  • 6
1
vote
2 answers

How to get horizontal padding in Photoswipe?

I'm using photoswipe with disabled zoom, like suggested here, but also want to avoid very landscapish images to reach beneath the prev/next arrows. Is there an easy way to achieve this?
johjoh
  • 464
  • 4
  • 18
1
vote
0 answers

open multiple photoswipe gallery from a link, without thumbnails

Using photoswipe, I want to be able to launch multiple galleries on a same page, without any thumbnails. Based on this demo http://codepen.io/dimsemenov/pen/ZYbPJM , galleries are launched from a clic on a thumbnail. I don't want to display any…
1
vote
1 answer

Uncaught ReferenceError: PhotoSwipe is not defined at openPhotoSwipe

at the beginning of using PhotoSwipe I have issue with Uncaught ReferenceError: PhotoSwipe is not defined at openPhotoSwipe (base.js:1821) at base.js:1825 I have properly imported Core CSS file, Skin CSS file, Core JS file and UI JS file as…
Mile Mijatović
  • 2,948
  • 2
  • 22
  • 41
1
vote
1 answer

how to controll focus after Photoswipe gallery is closed?

So when the user clicks on an image with a Gallery and decides to view an Image and closes the Gallery the Browser Window brings him to the top of the page.it's not good for accessibility.the focus should move back to it's original position in the…
turcospeed
  • 23
  • 5
1
vote
0 answers

Photoswipe reply/info pane

I'm using http://photoswipe.com for my picture gallery. Now i would like to implement a reply/info bar/pane like they have here. http://www.fotosidan.se/gallery/viewpiclarge/356031/3549694.htm?_p=3549689 But i don't know how to create the element…
fr0sty
  • 553
  • 1
  • 6
  • 10
1
vote
1 answer

Too many SVG's for mobile safari?

I'm working on a photoswipe gallery for my portfolio site, built using Hugo. The code isn't the cleanest, but it's a huge upgrade from my current build using HarpJS. I've also learned a lot about AWS and GCP in the process. Everything works on…
1
vote
1 answer

PhotoSwipe 404 prevention with fallback image

I'm displaying some images from Instagram in a PhotoSwipe gallery. The problem is that if the image gets deleted from Instagram, I get 404s in the gallery. How can I check if the image results in 404 and if so, display a locally saved image (as a…
John Kornick
  • 301
  • 1
  • 6
  • 14
1
vote
2 answers

Create photoswipe on UL>LI>FIGURE markup

On photoswipe docs the markup is div/figure/img. But i want other markup. How to "Creating an Array of Slide Objects" for this ul/li/figure/img markup. I know i need somehow to edit the "var initPhotoSwipeFromDOM = function(gallerySelector) {"…
user5840663
1
vote
1 answer

Increase zoom in Photoswipe Gallery

I'm using photoswipe gallery in my site, I associated the images to the gallery, now I want to increase the default zoom, but I can not find a solution, someone help me? thank you.
pacc88
  • 67
  • 1
  • 10
1
vote
2 answers

Photoswipe with Justified Gallery

I successfully set up Photoswipe and also Justified Gallery in my Rails project. Both of them work very nicely alone but I have trouble making them work together. In my current (default) setup Photoswipe expects a tag hierarchy as follows:
loxosceles
  • 347
  • 5
  • 21
1
vote
1 answer

photoswipe returning to initial hash of current page instead of last scroll position

On IOS, when I close photoswipe to return to the page, it wont return to the scroll position I was at when I clicked the thumbnail. Instead the page scrolls back to the # which was specified when I initially called the page. For example if…
user3597862
  • 121
  • 4
1
vote
0 answers

Image is not loading from web inside viewHolder's ImageView

I am trying to make swipeable card app like tinder. I have used this sample. It is working fine when i am getting images from Drawable resources, but viewHolder.cardImage is not getting set when i am setting image from web in…
muzamil
  • 196
  • 7
1
vote
2 answers

Combining Swiper slider and photoswipe

I'm looking for a combination of Swiper slider and Photoswipe (Or other lightbox). Trying to make a product slider with 3 products in a slide. Each product has a lightbox/modal with video and a gallery. The modals are generated within the…
moonshard
  • 66
  • 1
  • 10