Hello! I am trying to set up a lightbox with mousein/mouseout. I read many examples we have in this site but seems they are not working.
This is the site (fake site to test it):
https://midviajeslaspareja.wixsite.com/misitio
I plan to make the lightbox open when you step over the big rectangle with the cursor
The ligthbox its already made and its set to appear manually
I have the following code in the Page section.
import wixWindow from ‘wix-window’;
export function vectorImage1_mouseIn(event) {
wixWindow.openLightbox(“Popup”)
Note that vectorImage1 = is the rectangle
Popup = is the lightbox
I set up the export function from the right panel
Also, I am using “wixWindow” instead “window” alone because I followed this guide
The only thing that is strange its the red circle on the left that says “Parsing error: import and export may only appear at the top level”
Could you tell me why is not working?
Any help would be really appreciate
Thank you
Diego