Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PhotoSwipe

> 编程语言
Open source

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

25.2K stars0 likes4 views
WebsiteGitHub

About

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

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

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.

This project is tested with BrowserStack.

Issues· 170 open

View all issuesOpen on GitHub
  • #2185

    Placeholder is sized by width only, so a thumbnail with a different aspect ratio is drawn at the wrong height

    Updated Aug 14, 2026
  • #2181

    Chrome: Error after opening the image?

    Updated Jun 18, 2026
  • #2180

    Modernize RGBA color syntax to prevent SASS precision loss

    Updated May 15, 2026
  • #2179

    Aspect ratio is wrong, images are stretched instead of keeping original size

    Updated Apr 29, 2026
  • #2178

    Problem (Error) with addFilter('thumbEl'... function and typescript

    Updated Apr 8, 2026
  • #2175

    Add option to animate slides when navigating

    Updated Feb 23, 2026
  • #2051

    If there is no<a> wrapper, the image cannot be opened

    Updated Jan 16, 2026
  • #2172

    Setting only the `arrowPrevSVG` option also impacts `arrowNext`.

    Updated Dec 30, 2025
  • #2171

    PhotoSwipe cannot be found in remote repositories by Composer

    Updated Dec 22, 2025
  • #2038

    What is the status of the PhotoSwipe plugins?

    Updated Nov 18, 2024

> Tags

JavaScriptgalleryimagejavascriptlightbox

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言