Hi!
I’m trying to show a box (preloader) until a lightbox with a slideshow has loaded.
I’ve managed to open the Lightbox and preloader box when clicking a button with an onClick funktion. The preloader opens and then the Lightbox opens on top. That’s great. But when I close the Lightbox the preloader box is still showing.
I’ve been testing a lot of different codes and tricks but nothing works.
Below is my latest try.
Please help!!
import wixWindow from ‘wix-window’;
$w.onReady( function () {
wixWindow.lightbox.close
.then( (results) => {
$w(“#box19”).hide
} );
} );
export function button49_click(event) {
$w(‘#box19’).show();
wixWindow.openLightbox(“Salt”);
}
Thanks!