Customized Shop menu

Hi there,
I’m trying to create a vertical menu with buttons and an extended menu that only appears when you move the mouse over that button:


That extended menu is a box with linked text. Now I have a problem:

The box stays when you don’t go mousein and after that mouseout to make the box disappear:

The box should automatically hide if I don’t mousein the box within 2 sec after mouseout the button. Is that possible to code?

My code so far:

export function butBasismaterial_mouseIn(event) {
$w( ‘#emBasismaterial’ ).show();
}

export function emBasismaterial_mouseOut(event) {
$w( ‘#emBasismaterial’ ).hide();
}