JavaScript MIT

PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent

D

dimsemenov

Dernière activité 4 déc. 2025
dimsemenov/PhotoSwipe

25,3 k

étoiles

3,3 k

forks

170

issues ouvertes

galleryimagejavascriptlightbox

Ce README est souvent en anglais.

FEEDBACK NEEDED I am developing the new version - PhotoSwipe v6, please read about upcoming changes and leave feedback.

PhotoSwipe v5 — JavaScript image gallery and lightbox

Demo | Documentation

Sponsor via OpenCollective Follow on Twitter

Repo structure

  • dist/ - main JS and CSS
  • src/ - source JS and CSS.
    • src/js/photoswipe.js - entry for PhotoSwipe Core.
    • src/js/lightbox/lightbox.js - entry for PhotoSwipe Lightbox.
  • docs/ - documentation markdown files.
  • demo-docs-website/ - website with documentation, demos and manual tests.
  • build/ - rollup build config.

To build JS and CSS in dist/ directory, run npm run build.

To run the demo website and automatically rebuild files during development, run npm install in demo-docs-website/ and npm run watch in the root directory.

Older versions

Documentation for the old version (v4) can be found here and the code for 4.1.3 is here.

Stand With Ukraine


This project is tested with BrowserStack.

Projets similaires

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes

JavaScriptgalleryimagejavascript
Bbiati-digital
2,5 k étoiles251

Full featured JavaScript image & video gallery. No dependencies

JavaScriptanimationcss-animationsgallery
Ssachinchoolur
5,3 k étoiles578

Touch-friendly image lightbox for mobile and desktop

JavaScriptdialogdoubletapes6
Aandreknieriem
1,2 k étoiles165