levmyshkin/photo-swipe

PhotoSwipe v5 — JavaScript image gallery and lightbox as Drupal library

Fund package maintenance!
Open Collective

Installs: 10 380

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3 307

Language:JavaScript

Type:drupal-library

5.2.2 2022-10-06 13:53 UTC

This package is auto-updated.

Last update: 2024-11-06 18:13:36 UTC


README

PhotoSwipe v5 — JavaScript image gallery and lightbox as Drupal library.

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.

This project is tested with BrowserStack.