HamburgerMenuContainer
The hamburger menu container holds the items of an expanded hamburger menu. It features a list of menu items that navigate to sections or pages on your site, a fullscreen overlay, and a button to close the menu. Learn more.
Additional information about this section
Store values associated with an object
- opened
Indicates if the hamburger menu container is currently open.
- customClassList
A property that represents an element's custom CSS classes.
- deleted
Indicates if an element was temporarily deleted from the DOM. Use the restore function to restore the deleted element.
- rendered
Indicates if an element is currently in the DOM structure.
- global
Indicates if an element appears on all pages or only on the current page.
- id
Gets the element's ID.
- parent
Gets the element's parent element.
- type
Gets the element's type.
- children
Gets an array of the elements that are contained within the element.
Perform actions on an object
- close( )
Closes the hamburger menu container.
- onClose( )
Adds an event handler that is triggered when the menu container is closed.
- onOpen( )
Adds an event handler that is triggered when the menu container is opened.
- open( )
Opens the hamburger menu container.
- delete( )
Deletes an element from the DOM. This is a temporary deletion. Use restore to restore the deleted element. SEO crawlers cannot find content in an element whose ...
- onMouseIn( )
Adds an event handler that runs when the pointer is moved onto the element. You can also define an event handler using the Properties and Events panel.
- onMouseOut( )
Adds an event handler that runs when the pointer is moved off of the element. You can also define an event handler using the Properties and Events panel.
- restore( )
Restores a deleted element to the DOM.
- scrollTo( )
Scrolls the page to the top of the element using an animation.
- onViewportEnter( )
Adds an event handler that runs when an element is displayed in the viewable part of the current window.
- onViewportLeave( )
Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.
- onClick( )
Adds an event handler that runs when the element is clicked.
- onDblClick( )
Adds an event handler that runs when the element is double-clicked.