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
13
votes
2 answers

PhotoSwipe: edit parseThumbnailElements function to parse additional markup element

Using PhotoSwipe the thumbnail gallery markup looks like this:
8
votes
6 answers

Photoswipe image size/ratio

I'm using a Laravel website, including Photoswipe. Here's my problem: When I click on a photo, it pops up with a predefined height and width (in my case 764X480). I'd like my photos to open with their original ratio, not with a predefined (as I have…
Vfero
  • 463
  • 2
  • 5
  • 14
8
votes
3 answers

Photoswipe pswp class Not Clearing After Closing Image

I have a Photoswipe (http://photoswipe.com) image gallery on my site, and the css class is not resetting/clearing to remove the view after I close a gallery for the second time. ex. User opens item 1, AJAX populates the figure(s) into the picture…
MBarton
  • 2,087
  • 2
  • 14
  • 17
6
votes
1 answer

photoswipe custom toolbar with jquery mobile

I am new in jquery mobile and jquery also. I am working on a project with phonegap and jquery mobile. I am using PhotoSwipe for image gallery. It is working nice and show the images. But I want to make a custom toolbar for photoswipe for my gallery.…
Sakib
  • 472
  • 5
  • 17
6
votes
2 answers

Adding images dynamically to photoswipe

Is there a way to add images dynamically to a photoswipe gallery after it is created. The situation is this. I'm fetching image urls from the sever and showing them in a gallery. As the items are downloaded the anchor and img elements are added to…
Justin Ohms
  • 3,334
  • 31
  • 45
5
votes
6 answers

Prevent photoswipe from ever hiding the toolbar

I'm using PhotoSwipe 3.0.4 with jQueryMobile 1.1-rc1. I'm trying to prevent PhotoSwipe from hiding it's toolbar. I tried setting the captionAndToolbarAutoHideDelay paramater to 0 hoping this would prevent the toolbar from hiding but this just seems…
darryn.ten
  • 6,784
  • 3
  • 47
  • 65
5
votes
1 answer

Photoswipe Cannot read property 'center' of undefined at line 1070 of photoswipe.js

I am just dabbling with photoswipe, and so far I haven't done anything more advanced than simply implementing a copy of the get started demo with a few very small (and theoretically insignificant tweaks). My picture gallery comes up just fine, and I…
Danny
  • 308
  • 1
  • 4
  • 12
4
votes
1 answer

swipe gesture with mouse on desktop, like Photoswipe, but animate a div

I'm searching for a script like Photoswipe that works on desktop on mouse events, simulating swipe gestures. Photoswipe without thumbnails is perfect - only I want to animate not only images but a whole div!
wishbone
  • 65
  • 5
4
votes
2 answers

Way for easy integration of PhotoSwipe

I was recently looking for a smart responsive beautiful lightbox fork. I found a lot, the most easy to integrate and good looking. But I think I've been falling in love with PhotoSwipe <3. Problem is: it's - of course - the only lightbox alternative…
Alex
  • 789
  • 1
  • 12
  • 29
4
votes
1 answer

PhotoSwipe fullscreen fit to window

Is there a way to fit the image to the browser viewport ? I would really like to put the image in the background of the element instead of the normal behaviour of creating an img markup. That would let me use background-size:cover in css.
Jonathan Lafleur
  • 493
  • 5
  • 25
4
votes
4 answers

Configure PhotoSwipe to Not Use Entire Window?

I'm currently trying to build a mobile image gallery using PhotoSwipe. I've been able to get it working but there's one small problem. When I click on a photo thumbnail, the actual photo always takes up the entire viewport. This is OK when you're…
Jim
  • 13,430
  • 26
  • 104
  • 155
3
votes
3 answers

Replace images in PhotoSwipe gallery

I have a PhotoSwipe gallery on my page which is created programatically like this: var instance = window.Code.PhotoSwipe.attach(image, options) Now I want to update the images in the gallery, or put a new gallery in the same spot. Creating a new…
Timm
  • 2,652
  • 2
  • 25
  • 34
3
votes
2 answers

photoswipe get images from flickr or other feed?

I am working with photoswipe and seen the examples available but there's nothing dynamic there. Has anyone managed to get photoswipe grabbing images from Flickr or other feed or know of any examples anywhere? Here's the examples…
Satch3000
  • 47,356
  • 86
  • 216
  • 346
3
votes
1 answer

JavaScript gallery to close (instead of loop), when gallery end/beginning is reached

Plase see title. I would like to achieve the following: 1. On Mobile: In PhotoSwipe, when a swipe to view next image is detected (when already viewing last image), Close PhotoSwipe. 2. On Mobile: Same as the above but when viewing the 1st image.…
3
votes
1 answer

PhotoSwipe and Webpack: Can't resolve path

I have installed Webpacker into my Rails app and am just trying to get it all configuring. All the images in my custom CSS are resolving correctly but i'm having trouble with Photoswipe. Photoswipe is installed as a Node module. My main…
rctneil
  • 7,016
  • 10
  • 40
  • 83
1
2 3
23 24