Picture swap in database galery on mouse in

Hi,
I’m making a third-party online store in Wix, I would love to have a product gallery on my front page in which a second picture of the product would show when user hovers cursor over it.
Any advice on how should i go about doing it? I couldn’t figure out how to reference the pictures from a database in the site code.
Thanks!

you can use a Hover Box, they are under the ‘interactive’ category in the add menu. they are an image frame that when you hover it changes the contents inside, so you can have a picture in Regular state and other picture when hover. you can do it in othere ways but this is the easiest one and don’t require to code.

1 Like

That could potentially work, however it would mean that i have to manually change those pictures every time we change our product lineup. I’d really love for it to work as a repeating layout so it changes automatically as we change our database.

you can connect the images inside the hover box to a image field in the product collection, when you change the products in the collection all images connected will update with the new ones.