|Number of watchers on Github||16033|
|Number of open issues||426|
|Average time to close an issue||14 days|
|Average time to merge a PR||8 days|
|Open pull requests||56+|
|Closed pull requests||33+|
|Last commit||over 1 year ago|
|Repo Created||over 8 years ago|
|Repo Last Updated||over 1 year ago|
|Organization / Author||dimsemenov|
|Do you use PhotoSwipe? Leave a review!|
|View open issues (426)|
|View PhotoSwipe activity|
|View on github|
|Fresh, new opensource launches 🚀🚀🚀|
Trendy new open source projects in your inbox! View examples
npm install photoswipe.
bower install photoswipe.
Coded something useful? Email me and Ill post a link to it here.
1) Clone the repository
git clone https://github.com/dimsemenov/PhotoSwipe.git
2) Go inside the PhotoSwipe folder that you fetched and install Node dependencies
cd PhotoSwipe && npm install
grunt to generate the JS and CSS files in the
dist folder and the site in the
grunt watchto automatically rebuild files (JS, CSS, demo website and documentation) when you change files in
grunt nositeto build just JS and CSS files (output is folder
grunt pswpbuildto build just JS files. Param
--pswp-excludeallows to exclude modules, for example
grunt pswpbuild --pswp-exclude=historywill exclude history module.
If youve used PhotoSwipe in some interesting way, or on the site of a popular brand, Id be very grateful if you shoot me a link to it.
Script is licensed under MIT license with one exception: Do not create a public WordPress plugin based on it, as I will develop it. If you need to use it for a public WordPress plugin right now, please ask me by email first. Thanks!
Attribution is not required, but much appreciated, especially if youre making a product for developers.
PhotoSwipe 4.0+ is developed by Dmitry Semenov. But initially script was created in 2011 by Code Computerlove, a digital agency in Manchester, they passed on development in March 2014. You can view source and documentation of old PhotoSwipe (<4.0) in history of this repo.
Fix: iOS 10.3 not updating layout after orientaton change in some cases. For more details please refer to issue https://github.com/dimsemenov/PhotoSwipe/issues/1315#issuecomment-291897591
SvgAnimatedString no className.
fitControlsWidthfor the default UI (default was not changed 1200px), issue #1021.
Improved rendering performance of images that are larger than PhotoSwipe viewport, which leads to more smooth swipe transition and decreased memory usage (up to 50% depending on image and viewport size), but affects zooming behaviour.
Composited layer for the image is now created only after it's zoomed. Watch screencast that demonstrates how it works now.
This change does not affect public API, everything should work as before.
Also some small things that were changed:
closeOnScrollis now blocked if animations are running or gesture is performed.
verticalDragRangedefault value increased from 0.6 to 0.75.