(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.)
Get Elementor Pro Today –
1 – Elementor Pro
Don’t want to make from scratch? Buy the template instead 🙂
Introduction – Animated Modern Menu #2 with Elementor & GSAP
In this tutorial, we are learning to make animated menus with GSAP and Elementor. Keep in mind that not all menus will work perfectly in mobile, so create a different version for mobile version. You will need watch the video above to understand where to add the code due to its complexity. Alternatively, you can purchase the Modern Menu pack to quickly jumpstart your menus.
Animated Modern Menu #2 (Simply Scale Up Reveal – add any shape or image)
- dm-menu-list-2 is the CSS class of the menu items. These can be page links, images or any widget you wish to add in the menu.
- dm-menu-container-2 is the CSS class of the container that contains all the menu list items.
- dm-menu-icon-2 is the CSS class of the icon that opens/closes the menu. You can add a button, text or any widget and give it the class dm-menu-icon-2 and it will open/close the menu container.
- dm-menu-bg-2 is the CSS class of the container that is used for background circle or image.
- Change the color and fill code to choose which colors shows when menu is opened and closed.
- Don’t forget to add overflow-x:clip to your main header container else there would be left/right scroll in different screen sizes.
Animated Modern Menu #2a (Constant Rotating Background)
- dm-menu-list-2a is the CSS class of menu items. Besides page links, you can also add any other widget and give it this class for the animation to work.
- dm-menu-container-2a is the CSS class of the container that contains the menu lists.
- dm-menu-icon-2a is the CSS class of the icon that opens/closes menu. Besides a icon, you can use any other widget like image, lottie etc. to open/close menu.
- dm-menu-bg-2a is the CSS class used for the background image container. To change rotation speed, you can change the duration at line 56.
- Change the color & fill value to your desired color/hex code to choose the menu icon color when it closes/opens.
- Don’t forget to add overflow-x:clip to your main header container else there would be left/right scroll in different screen sizes.
Animated Modern Menu #1b (Rotate Once)
- dm-menu-list-2b is the CSS class of menu items. Besides page links, you can also add any other widget and give it this class for the animation to work.
- dm-menu-container-2b is the CSS class of the container that contains the menu lists.
- dm-menu-icon-2b is the CSS class of the icon that opens/closes menu. Besides a icon, you can use any other widget like image, lottie etc. to open/close menu.
- dm-menu-bg-2b is the CSS class of the background container that has the image. You can change the speed and rotation amount at line 57.
- Change the color & fill value to your desired color/hex code to choose the menu icon color when it closes/opens.
- Don’t forget to add overflow-x:clip to your main header container else there would be left/right scroll in different screen sizes.