@jonatandor35 This is my code for my mega menu… would there be any improvements (i know there are) to make it quicker?
$w.onReady(()=> {
$w('#lsbutton').onMouseIn(()=> { $w('#lsdropdown').expand(); });
$w('#lsdropdown').onMouseOut(()=> { $w('#lsdropdown').collapse(); });
$w('#lsdropdown').onMouseIn(()=> { $w('#lsdropdown').expand(); });
$w('#ftbutton').onMouseIn(()=> { $w('#ftdropdown').expand(); });
$w('#ftdropdown').onMouseIn(()=> { $w('#ftdropdown').expand(); });
$w('#ftdropdown').onMouseOut(()=> { $w('#ftdropdown').collapse(); });
$w('#mbutton').onMouseIn(()=> { $w('#mdropdown').expand(); });
$w('#mdropdown').onMouseIn(()=> { $w('#mdropdown').expand(); });
$w('#mdropdown').onMouseOut(()=> { $w('#mdropdown').collapse(); });
$w('#fhbutton').onMouseIn(()=> { $w('#fhdropdown').expand(); });
$w('#fhdropdown').onMouseIn(()=> { $w('#fhdropdown').expand(); });
$w('#fhdropdown').onMouseOut(()=> { $w('#fhdropdown').collapse(); });
});
$w.onReady(function () {
setTimeout(function(){
$w('#lsbutton').onMouseOut(()=> { $w('#lsdropdown').collapse(); });
}, 300);
});
$w.onReady(function () {
setTimeout(function(){
$w('#ftbutton').onMouseOut(()=> { $w('#ftdropdown').collapse(); });
}, 300);
});
$w.onReady(function () {
setTimeout(function(){
$w('#mbutton').onMouseOut(()=> { $w('#mdropdown').collapse(); });
}, 300);
});
$w.onReady(function () {
setTimeout(function(){
$w('#fhbutton').onMouseOut(()=> { $w('#fhdropdown').collapse(); });
}, 300);
});