Question:
On my site [working url https://kalynblazak.wixsite.com/website-1/support] I am trying to create a hover-over effect, where if the user hovers over a photo, a text box which gives more information appears on top of the picture, and when the user mouses off, the text box disappears:
With my current code, the mouseIn and mouseOut functions don’t always work–particularly if the mouse moves too quickly. Also, on the mouseOut hide when it does work, there is a flicker of the image as it fades.
$w(“#exhibit1Description”).hide();
let fadeOptions = {
“duration”: 250,
“delay”: 0
};
export function exhibit1Picture_mouseIn(event) {
$w(“#exhibit1Description”).show(“fade”, fadeOptions);
}
export function exhibit1Picture_mouseOut(event) {
$w(“#exhibit1Description”).hide(“fade”, fadeOptions);
}
Product:
Wix Editor
What have you already tried:
I have tried changing the mouseOut event to exhibit1Description as well, but it behaves exactly the same way. I have also messed with which layer each of these elements are in but that hasn’t made a difference either.