Help! I can’t seem to get the mega-menu to hide when the mouse isn’t selecting the button. And it’s driving me nuts!
Read and tried the info from the posts:
https://www.wix.com/velo/forum/coding-with-velo/mega-menu-overlapping and
https://www.wix.com/velo/forum/coding-with-velo/mega-menu-sub-menu and
https://www.wix.com/velo/forum/coding-with-velo/wix-mega-menu and
https://www.wix.com/velo/example/mega-menu
But still, the mega-menu does show with a mouse over, but it won’t collapse again when the mouse is moved away. Mouse-out in my understanding. Please note: I’m not a coder.
You can see the result here: funkoonwheels dot nl (Note: site is in Dutch) Code:
export function button1_mouseIn ( event ) {
let rollOptions = {
“duration” : 300 ,
“delay” : 0 ,
“direction” : ‘top’
};
$w ( '#columnStrip11' ). show ( "roll" , rollOptions );
$w ( '#columnStrip9' ). hide ();
}
export function winkel_mouseOut ( event ) {
let rollOptions = {
“duration” : 300 ,
“delay” : 0 ,
“direction” : ‘bottom’
};
$w ( '#columnStrip11' ). hide ( "roll" , rollOptions );
}
export function button2_mouseIn ( event ) {
let rollOptions = {
“duration” : 300 ,
“delay” : 0 ,
“direction” : ‘top’
};
$w ( '#columnStrip9' ). show ( "roll" , rollOptions );
$w ( '#columnStrip11' ). hide ();
}
export function button2_mouseOut ( event ) {
let rollOptions = {
“duration” : 300 ,
“delay” : 0 ,
“direction” : ‘bottom’
};
$w ( '#columnStrip9' ). hide ( "roll" , rollOptions );
}