Problem with code.

@b4443569 A lightbox consists 2 elements:

  1. lightbox
  2. overlay
    You can animate the closing of the lightbox element. But there’s currently no way to animate the closing of the overlay.
 import wixWindow from 'wix-window';
let fadeOptions = {
 "duration":   2000,
 "delay":      1000
};
export function closeButton_click(event) {
    $w("#lighbox1").hide("fade", fadeOptions)
 .then(() => { wixWindow.lightbox.close();})
 }