Baike.dev
All toolsTrendingOpen sourceNewsSubmit
Log in
< 返回工具列表
P

PhotoSwipe

> 编程语言
开源

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

25.2K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

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.

核心特点

  • •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.

> 标签

JavaScriptgalleryimagejavascriptlightbox

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

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