Closing Lightbox after

I have a few Lightboxes triggered via hovering over buttons, and I have two questions.

  1. Is there any way/code to speed up the time it takes for a Lightbox to appear and disappear?

  2. I’m having trouble with the code for closing the lightbox on mouseout.

Here’s what I have. This portion is on the “Page”…

$w.onReady( function () {
//TODO: write your page related code here…

});

export function lightbox1_mouseOut(event) {
//Add your code for this event here:
} import wixWindow from ‘wix-window’;

// …

wixWindow.lightbox.close();

  1. Not that I know of.
  2. code:
import wixWindow from 'wix-window'; 
$w.onReady(function () {
 $w("#lightbox1").onMouseOut((event) => {
  wixWindow.lightbox.close(); 
 })
});