- Supported by:
- Popups for Divi
- Divi Areas Pro
Hover Areas are initially hidden and are displayed when the user clicks on an element or hovers above it.
Every Hover Area is “attached” to another element on the page, which is called “trigger element“. While the Area is displayed, it is aligned to that trigger element – when the trigger element moves up or down (while scrolling) or changes size, the Hover Area also moves to stay at the same relative position. This makes Hover Areas an ideal solution for mega menus or tooltips.
There is no “Keep Closed” option to permanently close Hover Areas.
Hover Areas can be triggered by click or hover events.
Those events will always trigger the Area, there is no option to show an Hover Area only once per request.
With Divi Areas Pro you can create a mega menu (or simply a custom menu) that is displayed when the user clicks on a main menu item.
// Trigger a Hover Area via JS API and align it to the <button class="cta"> element: DiviArea.show( 'my-hover-area', jQuery('button.cta') );