How to freeze a dropdown menu created with a lightbox?

I used a lightbox to create a dropdown menu, my problem is that when I open it, it shows, but if I or another person try to scroll down, the menu goes with the page, it doesn’t freeze, like a normal one. How can I freeze my lightbox, or what other options do I have?
Also, I would like to add a MouseIn function to the button that opens the Lightbox, so I don’t have to click on it.


The Wix lightbox operates like a page. Therefore, if you attach a dropdown to a lightbox you can’t pin it to the site.

You can try using a container box or repeater instead. Checkout this Mega Menu example:

You can open a lightbox on a mouseIn event by calling lightbox open method here:

Good luck!