Latest version RC3
Released 3 years ago
- Small change to the hover animation to ensure a particularly wide image doesn’t go out of bounds.
- Fixed a bug with the focused image size.
- Added support for the Plugin HTML Inserter.
Turns a series of images into a responsive gallery of expandable images, for desktop and mobile.
* This plugin is somewhat experimental. Changes in appearance and behaviour should be expected and your feedback is welcome.
This plugin supports the Editor Toolkit! You can install this user script with a browser extension to insert the necessary HTML in your entities without memorizing or referencing this page.
Simply insert multiple images in a row in the editor, then go to HTML view to wrap them in a single container (preferably div
for semantics, but p
also works) and give it the "autogallery" class, like so:
You can change the default gallery view image height of 20vh (20% of the window’s height) by adding the style attribute to your container as follows: div class="autogallery" style="--autogallery-height: 20vh;"
and changing 20vh to the dynamic or static value of your choice.
The image expansion hint at the bottom of the gallery is currently provided in English and French based on the user’s site preferences. You can add your own translations to your campaign CSS by copying and editing the code below. Simply change lang="en"
to match your language code and edit the text between quotation marks. Likewise, you can change the hint text for English (en or en-us) to whatever you prefer :)
html[lang="en"] { --autogallery-hint-d: "Click and hold to enlarge an image"; --autogallery-hint-m: "Tap to enlarge an image"; }
Feel free to submit your translations for inclusion in the plugin via Discord!
I would be grateful for your feedback on Discord regarding the following points:
Want to show appreciation for my plugins or request one-on-one CSS help? I accept tips on Ko-fi (no account needed):
Released 3 years ago