The following examples use the “dynamic caption” with automatic placement beside or below the image. To see another variation with “overlay” caption, see this example.
Single image with caption:
A gallery with the Gutenberg gallery block:
Images in a tiled gallery (some images are quite large and may take a while to load!):
Example with NEXTGen Gallery
This image demonstrates using multicolumn captions:
About PhotoSwipe 5
PhotoSwipe 5 by Dmytro Semenov has much better support for mobile devices with iOS 13 and better performance due to its modular structure. It is also easier to extend its functionality using plugins or event handlers.
Due to changes in PhotoSwipe 5 some features are not available in Lightbox with PhotoSwipe:
- URL navigation where the URL gets modified with each image displayed, so you can link to images in the lighbox directly as in PhotoSwipe 4. So far linking to an image is supported to keep existing links valid, but PhotoSwipe itself does not support the history API any more.
- Custom modes for mouse wheel (the wheel is now always used for specific operations like Strg+wheel for zooming and scrolling in zoomed state).
- “Share” menu – this is not part of PhotoSwipe 5 any longer, but may be added as plugin by Lightbox with PhotoSwipe in the future similar to fullscreen mode and auto hiding of controls.
Since PhotoSwipe 5 is now modular, it will now only be used in its original form and only be extended by plugins.