Picture displayed\disappear in wix

Hi All,

I am trying to do the following but i got stuck and need your help please.
i want to add a picture to one of the pages in the site and use Wix code to get it to disappear once you hover it with the mouse . When mouse is not on the picture, the picture should be displayed on the page.
What are the steps i need to do?
Thank you.
David

you could do this:
put a box over the image, and change the opacity to 0%

then use the method mouse in and out for this box to show and hide your image.

export function box1_mouseIn(event) {
$w(‘#image1’).hide()
}

export function box1_mouseOut(event) {
$w(‘#image1’).show()
}

1 Like

Thank you!!!