biati-digital / glightbox

Pure Javascript lightbox with mobile support. It can handle images, videos with autoplay, inline content and iframes
MIT License
2.01k stars 226 forks source link

before_close event #498

Closed Offerel closed 1 month ago

Offerel commented 1 month ago

I would like to ask, if there is a before_close event or if not, if there is a way for some sort of workaround?

Reason is, i have added some custom buttons and i use the close button, to position these buttons next to each other. If i now close the picture, the buttons disappear also, but only after some time. This means, a gallery with white background will display the buttons for a blink of a second, between the image is closed and the buttons are completely fade out. This is not the a big issue, only a small disadvantage.