(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 – Animated Modern Menu with Elementor & GSAP
In this tutorial, we are learning to make simple and minimalistic menu that also looks modern with the animations. It is fully responsive and enhances your website by making it look more livelier.
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-icon6 changes width of the hamburger icon.
- height in .menu-icon6 changes the distance between each line.
- height in .line6 changes the thickness of the each lines.
- .menu-wrapper6 contains the styling for background, padding, border etc.
- Each CSS class has an .active state, change the appropriate values for background, border etc.
Minimal Style Menu Code – CSS and Javascript (JS)
- dm-menu-6-bg is the CSS of the parent container of all contents of menu.
- dm-menu-icon-6 is the CSS class of the menu icon.
- dm-menu-6-title is the CSS class of the menu titles (heading widget with p HTML tag).
- dm-menu-6-spin is the CSS class of image or icon that has the animation of spinning. You can change to any animation via CSS keyframes in below code.
- From line 103 – 119, please change the values for desktop, tablet and mobile for “closed” menu. (Please refer above video to know how to do it perfectly)