Pause Slideshow on Lightbox OPEN, play on Lightbox CLOSE.

Hey everyone.

So I’m in progress of building my new site, when opening the Lightbox I would like the playing background slides to PAUSE and then when closing the Lightbox I would like it to commence playing…

I can get it to pause no problem. But getting it to resume on Lightbox CLOSE…???

I looked into https://www.wix.com/corvid/reference/wix-window.html#openLightbox but in all honesty, I’m a bit lost.

Any help would be great!

Cheers.

Cal

Yep so onReturn of you Lightbox open slideShow.pause()

Hi,

Thanks for the reply.

@shan would you be able to help?

I’m very new to this, would you be able to give an example of the code and explain what it’s doing?

Here is my code to call the lightbox:

export function menuhamburger1_click(event) {
    if ($w("#slideshow1").isPlaying) {
            $w("#slideshow1").pause();
            console.log("Slideshow paused")
            wixWindow.openLightbox('menu1').then(dataObj => {
                console.log(dataObj);
        })
    }
}

Many thanks.

Cal