Search code examples
javascriptimagephotoswipe

Photoswipe.js // Adding padding to image


Using photoswipe.js, which is pretty cool

Just a thing that is kind of bothring, the images are always touching the boudaries of the viewport (meaning no whitespace aroudn the image)

Does anyone experienced about adding this specificity ?


Solution

  • I needed the same functionality so I added a padding option for image carousel. I already sent a pull request but I don't know if it will get merged. Anyway you can get the change based on v3.0.5 from here or by building from this branch.