Trigger a hoverbox on mouseIn

I watched the video tutorial about how to add hovering effects and I get to this point

export function textbox_mouseIn(event, $w) { $w(“#hoverBox1”)“.show(animationName)}

I think it is supposed to work but it doesn’t ,also 2 annotations appear saying
unexpected character’"’
and animation name is undefined

What is wrong?

Hi,

Welcome to the Wix Code forums.

The error messages explain the problems:

  • You have a stray " in the code.

  • animationName needs to be one of the show() animations
    You need something like this:

export function textbox_mouseIn(event, $w) {
    $w("#hoverBox1").show("BounceIn");
}

Good luck,

Yisrael

That doesn’t work for me either.
Is there anything wrong?

Ok I figured it out…the function wont run on hidden objects so I need something else that is always hidden = false to trigger the event.