Happy New Year! As a present from me to you I have improved the lightbox. I hope you like it.
I updated some style rules with an ‘!important’ tag, to prevent lightbox styles accidentally being overruled by the theme. Additionally the lightbox now has keyboard support. The arrow keys (left and right) can be used to loop over the images. Pressing the ‘escape’ key (Esc) will close the lightbox. Finally I added swipe support through a lightweight vanilla-js swipe script I found online. The swipe detection also works on desktop (tested in Firefox).
Want to test the improved lightbox? You can do that at the lightbox page by clicking on the links.
Joost van der ScheeShare on: