Hi guys! I’m trying to fade out a lightbox when clicking a button. I wrote the following code but it just closes the lightbox, without the fade out animation:
import wixWindow from 'wix-window';
export function button1_click(event) {
wixWindow.lightbox.close("fade");
}
Hi! First of, thank you for your reply. I’ve been trying to do it with the GUI, but I can’t seem to get it working. Could you please provide me the code to do it? Thanks.
@jonatandor35 Hi J.D! Thank you for your answer, it works! Now, because it’s impossible to animate the overlay, I’ve put the content inside the lightbox, but the problem is that it isn’t as responsive as the overlay. Could you help me out with this?
@b4443569 I don’t know. I can’t think of a simple solution off the top of my head. Try to see if there’s something in the video settings that may help/