Archived topic
Onepage where menulinks are activated onMouseover/Hover - not onClick
5 replies · Started by Jacob on April 30, 2021
I want to make a Onepage theme. I can do that. I want the links in the onepage to be activated upon hovering over the links - or onMouseover - I dont know the difference between them if any.
Is there some easy javascript or anything I can do to achieve this result ?
Thanks.
Hi there,
just to be clear - you want the link to be active on hover instead of click ?
Hi David. Yes. When I hover over "contact us" I want the page to go to the contact-section. Stratum widget has a tabs-widget where each tab is activated on hover - I want that - but just for the main menu. Basically I could do with the tabs-widget, but I just want the same function for the normal sticky header menu in a onepage-setup.
I do not see why users should have to actually click - when they could just "browse" the page in a sliding manner. Seems to be a not-so-optimized way of making a good user interface.
Found this stackoverflow on how to use the jQuery trigger function to simulate a click on hover:
https://stackoverflow.com/a/2462328
But, 1. i am not sure if some browsers will block this 2. what the ramifications are for a touch enabled device.
So i cannot provide an exact solution as i feel there are many reasons for why it won't work or could cause other issues.
Thank you. I will use this then:
https://motopress.com/blog/stratum-widgets-elementor-accordion-tabs/
You're welcome