(This page includes affiliate links. If you click and purchase, I receive a small commission at no extra cost from you and that way you can support me. I only recommend tools that I have personally used and loved.)
Don’t want to make from scratch? Buy the template instead 🙂
Introduction – Cascading Door Style Animated Modern Menu with Elementor & GSAP
In this tutorial, we are learning to make full screen GSAP animated menu that opens/closes when clicked on our toggle button. The menu opens like a sliding door in 3 parts. You can add content in each content but recommended to only use for right most for the best design.
Animated Hamburger Icon (Toggle between Open and Close Icon)
- Refer to this video to understand it better. (https://youtu.be/FzcW342IJ-c?t=202)
- Width in .menu-icon5 changes width of the hamburger icon.
- height in .menu-icon5 changes the distance between each line.
- height in .line5 changes the thickness of the each lines.
- .menu-wrapper5 contains the styling for background, padding, border etc.
- Each CSS class has an .active state, change the appropriate values for background, border etc.
Grid Div (You can add different backgrounds too)
- grid-div is the CSS class of the HTML widget.
- You can add your custom patterns too by searching in google for “CSS background Patterns”. Example website https://www.magicpattern.design/tools/css-backgrounds.
- Here is an video explanation of creating background patterns – https://www.youtube.com/watch?v=BWoXI5gDsrs
Sliding Door Style Menu Code – CSS and Javascript (JS)
- dm-menu-off-slide-wrapper is the CSS of the parent container of all contents of menu.
- dm-menu-off-slide-toggle is the CSS class of the menu icon.
- dm-menu-off-slide-column-1, .dm-menu-off-slide-column-2, .dm-menu-off-slide-column-3 are the CSS class of each “door” container from left to right respectively.
- dm-menu-off-slide-page-wrapper is the CSS class of container that contains how heading and divider.
- dm-menu-off-slide-page is the CSS class of Heading widget that we use for our menu.
- dm-menu-off-slide-divider is the CSS class of the divider that is besides our menu titles.
/*No Scroll Code, Only to be used for Static Header*/