Hi @pressworthammer ,
I’ll have to consider whether it makes sense to add this to the core plugin or not – I’m afraid accordions on hover would have a negative impact on UX, and I haven’t seen a real world use case where triggering on hover would be advantageous. I’ll do a little more research into it.
However, I’ve written some custom javascript that you could use with Bellows which would trigger the submenus on hover and close them on hover-out:
jQuery( '.bellows-subtoggle' ).on( 'mouseenter' , function(){
if( jQuery( this ).parent().parent(':not(.bellows-active)' ).length ) jQuery( this ).trigger( 'click' );
});
jQuery( '.bellows-menu-item-has-children' ).on( 'mouseleave' , function(){
if( jQuery( this ).hasClass( 'bellows-active' ) ){
jQuery( this ).find( '> .bellows-target > .bellows-subtoggle' ).trigger( 'click' );
}
});
What I would do in a future version is to expose the submenu open/close functions to the API so that this code could be written a little more robustly/concisely.
Hope that helps! ??
Chris