Hello Pallaci,
I timestamped this video at the correct moment to show you how to do that,
Goodluck,
Majd
Hello Pallaci,
I timestamped this video at the correct moment to show you how to do that,
Goodluck,
Majd
Thanks for the response Majd. I have already done that and set to “0” seconds for the lightbox to appear. It still however takes almost 20 seconds after the home page is loaded. Do you have any other suggestions? I have a slideshow in my lightbox. I needed a slideshow with a close button.
Hello Pallavi,
If you used a already built lightbox from the wix editor, it will have some default values. To fix this you can copy the design of your old one into a new one, and fully customize it as you wish.
Slideshows don’t come with close buttons, but there are many ways to close a lightbox, look here :
Goodluck,
Majd
I am now trying to write a code that opens a lightbox on Mousin() event of the home page.
import wixWindow from ‘wix-window’;
export function page1_mouseIn(event, $w) {
//Add your code for this event here:
wixWindow.openLightbox(“lightbox1”);
}
It isn’t working. Nothing happens at all. Is there another way of doing this?
Hello,
Try writing it like this:
$w("#myElement").onMouseIn( (event, $w) => {
wixWindow.openLightbox("lightbox1");
} );
Let me know if this works,
Majd
EDIT:
On second thought if you are going with that technique it is better to be on view port entered like seen in the documentation here, in any case I would try both: