Install

Works with Drupal: ^9.3 || ^10

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 36.1 KB
MD5: 950eb32fdbed336fdce75717074aa2d8
SHA-1: b405ca130b7ea9d5605fd4cea9ff2f7289e579b0
SHA-256: f0aceacf3703ca6aa2542e76d5d64eb8286836029c3582c7f8b7b6998c2d6289
Download zip 63.29 KB
MD5: 09a34cbc32101b7da15f881beccdd971
SHA-1: b86fbfd5720d4af9afad48a50d300b674b257a99
SHA-256: ab271654fab2001f3167fb5ebbe806915b84d16a8f4a021c87d997ddd0239a86

Release notes

Photoswipe 5 compatible alpha version release! For further insights on the changes, visit #3232070: [5.x] PhotoSwipe 5 Branch.

Photoswipe 5 library specific changes

What's new

Code quality and rewrite in ES6
The script is now distributed as an ES module and does not require a build step to use.

Animation and gesture engine update
Improved performance of most animations, touch gestures should feel more fluid now. The initial opening or closing transition can be run from cropped thumbnails.

Single CSS file and no external assets
Using CSS variables, default icons are dynamically generated and tiny.

Built-in responsive images support
PhotoSwipe also dynamically loads larger images as the user zooms via srcset.

Open images in zoomed state
It's now much easier to control the zoom level.

Removed features from the core
Some built-in features were removed in v5, either because they are using outdated technology or just rarely used. Some of them are or will be replaced by a plugin. These include:

  • History API (#hash-based navigation is outdated)
  • Social sharing (unreliable URL, lack of Opengraph support)
  • Fullscreen button (rarely used, double fullscreen). Related example in docs →
  • Caption (accessibility problems). Refer to the caption section of docs.
  • Inline gallery support (v5 is mainly designed to be used as a dialog).

Photoswipe 5 main module specific changes

  • CDN is not used as fallback anymore. Instead, you need to enable it manually on the settings page.
  • The photoswipe caption logic is now split into its own submodule, as the library did the same for their version 5 release
Created by: grevil
Created on: 18 Jul 2023 at 12:45 UTC
Last updated: 18 Jul 2023 at 12:48 UTC
Bug fixes
New features
Insecure

Other releases