{"id":5218,"date":"2022-05-09T02:00:00","date_gmt":"2022-05-09T00:00:00","guid":{"rendered":"https:\/\/alvarotrigo.com\/epa\/javascript-menus\/"},"modified":"2024-02-14T13:29:45","modified_gmt":"2024-02-14T12:29:45","slug":"javascript-menus","status":"publish","type":"post","link":"https:\/\/alvarotrigo.com\/blog\/javascript-menus\/","title":{"rendered":"17 Beautiful JavaScript Menus You&#8217;ll Love [Examples]"},"content":{"rendered":"\n<p>Website navigation is such an important consideration when you are designing a website. It&#8217;s the main element in your site and probably the one receiving the most user interaction.<\/p>\n\n\n\n<p>Even though we can create a simple and pure HTML and CSS menu, using JavaScript can help increase creativity and improve the user experience overall.<\/p>\n\n\n\n<p><strong>JavaScript menus<\/strong> are a fantastic way to have a navigation menu that stands out and the added functionality makes everything more interesting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" data-src=\"https:\/\/alvarotrigo.com\/blog\/assets\/imgs\/2022-05-09\/list-beautiful-javascript-menus.jpeg\" alt=\"List of Beautiful JavaScript Menus For Your Website\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If you landed here looking for hamburger menu animations, you should check <a href=\"https:\/\/alvarotrigo.com\/blog\/hamburger-menu-css\/\">these pure CSS hamburger menus<\/a>!<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-javascript-menu%3F\">What Is a JavaScript Menu?<\/h2>\n\n\n\n<p>A JavaScript menu is known as a sidebar, header navigation or a mobile menu. JavaScript is used to add beautiful animations or enhance the user experience of the menu.<\/p>\n\n\n\n<p>By using JavaScript, you can make the menu more interactive and creative &#8211; being able to control hover and click events can only be done to a certain level using CSS only.<\/p>\n\n\n\n<p>JavaScript gives you that added functionality that you can&#8217;t get by using just HTML and CSS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"15-amazing-javascript-menu-examples\">15 Amazing JavaScript Menu Examples<\/h2>\n\n\n\n<p>You can create a navigation menu without the need for any JavaScript but, by using JavaScript, you can create something more interesting and more interactive, all these examples are using JavaScript to increase the user experience.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1.-page-tilt-javascript-menu\">1. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/oNExJwY\" target=\"_blank\" rel=\"noopener nofollow\">Page Tilt JavaScript Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_oNExJwY\" data-src=\"\/\/codepen.io\/anon\/embed\/oNExJwY?height=450&amp;theme-id=1&amp;slug-hash=oNExJwY&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed oNExJwY\" title=\"CodePen Embed oNExJwY\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/oNExJwY\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A unique page tilt effect is used to display a menu on the left side, clicking the hamburger icon will activate the menu and shift the whole main body over to the right on a tilt.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Check other <a href=\"https:\/\/alvarotrigo.com\/blog\/hamburger-menu-css\/\">Hamburger Menu CSS Examples<\/a> to use with this JavaScript Menu.<\/p>\n<\/blockquote>\n\n\n\n<p>The animation is smooth and the look is unique, the menu has its own close button and the hamburger icon conveniently slides out of the way above the screen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2.-javascript-dropdown-menu\">2. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/mdXPawB\" target=\"_blank\" rel=\"noopener nofollow\">JavaScript Dropdown Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_mdXPawB\" data-src=\"\/\/codepen.io\/anon\/embed\/mdXPawB?height=450&amp;theme-id=1&amp;slug-hash=mdXPawB&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed mdXPawB\" title=\"CodePen Embed mdXPawB\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/mdXPawB\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>This cool JavaScript dropdown menu is a fantastic example of a multi-purpose menu that you can fit into your own UI and design.<\/p>\n\n\n\n<p>Most dropdown menus will only have one level, but this JavaScript dropdown menu has multiple. You can select a subcategory and reveal a new menu &#8211; you can then also click \u201cBack\u201d to navigate to where you were.<\/p>\n\n\n\n<p>A lot of advanced features and inside the CSS are some nice and easy variables that you can change to edit the style.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3.-animated-angled-menu\">3. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/QWQNzgJ\" target=\"_blank\" rel=\"noopener nofollow\">Animated Angled Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_QWQNzgJ\" data-src=\"\/\/codepen.io\/anon\/embed\/QWQNzgJ?height=450&amp;theme-id=1&amp;slug-hash=QWQNzgJ&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed QWQNzgJ\" title=\"CodePen Embed QWQNzgJ\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/QWQNzgJ\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A cool and unique JavaScript menu that can be integrated into any website design, change the menu colours, font style and background colours to suit your brand in the CSS &#8211; easy variables already provided for you to change.<\/p>\n\n\n\n<p>The HTML structure is easy to follow and add to and the JavaScript is used to animate the menu and toggle certain classes on click events.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4.-animated-header-navigation-menu\">4. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/rNJeozB\" target=\"_blank\" rel=\"noopener nofollow\">Animated Header Navigation Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_rNJeozB\" data-src=\"\/\/codepen.io\/anon\/embed\/rNJeozB?height=450&amp;theme-id=1&amp;slug-hash=rNJeozB&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed rNJeozB\" title=\"CodePen Embed rNJeozB\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/rNJeozB\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>JavaScript menus come in all shapes and sizes and even though this menu is more a mobile-focused one, you could still get away with using it as a main header navigation menu.<\/p>\n\n\n\n<p>You are free to implement this design into your own website however you want, use it as a dashboard menu or as a mobile-focused one.<\/p>\n\n\n\n<p>The animation is very professional and the JavaScript is minimal and it shows you how you can use extra JavaScript to make CSS styling more dynamic and creative.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5.-bubble-menu\">5. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/PoQNXKQ\" target=\"_blank\" rel=\"noopener nofollow\">Bubble Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_PoQNXKQ\" data-src=\"\/\/codepen.io\/anon\/embed\/PoQNXKQ?height=450&amp;theme-id=1&amp;slug-hash=PoQNXKQ&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed PoQNXKQ\" title=\"CodePen Embed PoQNXKQ\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/PoQNXKQ\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A creative and interactive JavaScript menu that is very engaging to use. Clicking the menu icon smoothly slides it into the centre and reveals the menu options to navigate to other pages.<\/p>\n\n\n\n<p>Clicking a menu icon smoothly transitions into a new page and everything loads like a single page application. The menu icon stays in the same location, making it easy to navigate elsewhere.<\/p>\n\n\n\n<p>The animations are extremely smooth and not overwhelming, there is a tone of added user experience from this example.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Enjoying the page transitions in this example, we wrote more about some <a href=\"https:\/\/alvarotrigo.com\/blog\/css-page-transitions\/\">amazing JavaScript page transitions<\/a><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6.-navigation-menu\">6. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQzbvJ\" target=\"_blank\" rel=\"noopener nofollow\">Navigation Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_KKQzbvJ\" data-src=\"\/\/codepen.io\/anon\/embed\/KKQzbvJ?height=450&amp;theme-id=1&amp;slug-hash=KKQzbvJ&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed KKQzbvJ\" title=\"CodePen Embed KKQzbvJ\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/KKQzbvJ\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>We are so used to traditional header navigation bars like this one and they work so well &#8211; users are familiar with this style and they are easy to understand.<\/p>\n\n\n\n<p>This is where JavaScript comes in and helps make the menu more interactive and creative. JavaScript menus are great to add that unique flair to a menu and make it stand out more.<\/p>\n\n\n\n<p>JavaScript is used here to dynamically add and remove CSS styles, making the JavaScript menu more creative.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7.-twitter-animated-sidebar-menu\">7. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ZErWVJg\" target=\"_blank\" rel=\"noopener nofollow\">Twitter Animated Sidebar Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_ZErWVJg\" data-src=\"\/\/codepen.io\/anon\/embed\/ZErWVJg?height=450&amp;theme-id=1&amp;slug-hash=ZErWVJg&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed ZErWVJg\" title=\"CodePen Embed ZErWVJg\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ZErWVJg\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>If you are looking to make a sidebar more interesting and more creative, this example is great for that.<\/p>\n\n\n\n<p>Hover and click on the links and watch the animations take place, they are all smooth and custom to the icon itself.<\/p>\n\n\n\n<p>JavaScript is used to tie everything together and enhance the CSS styling to make it dynamic and interactive.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8.-fullscreen-morphing-navigation-menu\">8. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/xxYVmXV\" target=\"_blank\" rel=\"noopener nofollow\">Fullscreen Morphing Navigation Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_xxYVmXV\" data-src=\"\/\/codepen.io\/anon\/embed\/xxYVmXV?height=450&amp;theme-id=1&amp;slug-hash=xxYVmXV&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed xxYVmXV\" title=\"CodePen Embed xxYVmXV\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/xxYVmXV\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>High performance 60 FPS animations where the menu morphs into a full-screen vertical menu.<\/p>\n\n\n\n<p>All the menu links have a subtle animation effect on them when the menu is opened and closed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9.-slide-out-javascript-menu-bar\">9. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/GRQZPMy\" target=\"_blank\" rel=\"noopener nofollow\">Slide Out JavaScript Menu Bar<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_GRQZPMy\" data-src=\"\/\/codepen.io\/anon\/embed\/GRQZPMy?height=450&amp;theme-id=1&amp;slug-hash=GRQZPMy&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed GRQZPMy\" title=\"CodePen Embed GRQZPMy\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/GRQZPMy\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A hamburger style menu that slides out to expand to icons that you can click on. This could be used as a great mobile menu or for an additional settings menu as well.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If you are looking for more slide menus, you&#8217;ll love our <a href=\"https:\/\/alvarotrigo.com\/blog\/slide-menus\/\">collection of slides menus<\/a>!<\/p>\n<\/blockquote>\n\n\n\n<p>Change the colours and icons to make this JavaScript menu your own and match your brand style and identity.<\/p>\n\n\n\n<p>JavaScript in this example is used to activate CSS styles and for animation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"10.-simple-context-menu\">10. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/gOvMaKM\" target=\"_blank\" rel=\"noopener nofollow\">Simple Context Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_gOvMaKM\" data-src=\"\/\/codepen.io\/anon\/embed\/gOvMaKM?height=450&amp;theme-id=1&amp;slug-hash=gOvMaKM&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed gOvMaKM\" title=\"CodePen Embed gOvMaKM\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/gOvMaKM\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A basic <strong>JavaScript context menu<\/strong> that gets displayed when using the right-click anywhere on the page.<\/p>\n\n\n\n<p>The styling is very simple, so you can fully customise it to your needs.<\/p>\n\n\n\n<p>The benefit of using such a simple context menu is that it feels very natural. As if it was a context menu coming directly from the browser.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"11.-animated-phone-navigation-menu\">11. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/QWQNzqz\" target=\"_blank\" rel=\"noopener nofollow\">Animated Phone Navigation Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_QWQNzqz\" data-src=\"\/\/codepen.io\/anon\/embed\/QWQNzqz?height=450&amp;theme-id=1&amp;slug-hash=QWQNzqz&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed QWQNzqz\" title=\"CodePen Embed QWQNzqz\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/QWQNzqz\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>An animated navigation menu that you can integrate into your own website design, it uses a very materialistic design and the icons are minimal.<\/p>\n\n\n\n<p>Icon text smoothly displays as you click on each menu item and slides into view.<\/p>\n\n\n\n<p>JavaScript is used to activate and remove CSS styles more dynamically on click events.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"12.-mobile-javascript-menu\">12. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/LYQNMOb\" target=\"_blank\" rel=\"noopener nofollow\">Mobile JavaScript Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_LYQNMOb\" data-src=\"\/\/codepen.io\/anon\/embed\/LYQNMOb?height=450&amp;theme-id=1&amp;slug-hash=LYQNMOb&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed LYQNMOb\" title=\"CodePen Embed LYQNMOb\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/LYQNMOb\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>If you are looking for a JavaScript menu that is focused on mobile design only, this one is for you.<\/p>\n\n\n\n<p>It features a mock-up of an application but the menu is fully functioning. Clicking the hamburger menu reveals the animated mobile menu.<\/p>\n\n\n\n<p>The animations are subtle and smooth, and the menu takes up the whole screen and can be easily added to, as it uses normal HTML links.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"13.-responsive-javascript-sidebar-navigation\">13. <a href=\"\/\/codepen.io\/alvarotrigo\/pen\/bGLpOYx\" target=\"_blank\" rel=\"noopener nofollow\">Responsive JavaScript Sidebar Navigation<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_bGLpOYx\" data-src=\"\/\/codepen.io\/anon\/embed\/bGLpOYx?height=450&amp;theme-id=1&amp;slug-hash=bGLpOYx&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed bGLpOYx\" title=\"CodePen Embed bGLpOYx\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/\/codepen.io\/alvarotrigo\/pen\/bGLpOYx\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A full-on responsive sidebar navigation menu, this example is very cool as you can use it as a starting point for your next project.<\/p>\n\n\n\n<p>The navigation menu comes with some fancy icons and smooth animations that slide down the menu items to expand further.<\/p>\n\n\n\n<p>JavaScript is used to add and remove styling when you interact with the menu, so it has increased interactivity depending on what the user clicks on and dynamic CSS classes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"14.-circular-navigation-menu\">14. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ExQKGoV\" target=\"_blank\" rel=\"noopener nofollow\">Circular Navigation Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_ExQKGoV\" data-src=\"\/\/codepen.io\/anon\/embed\/ExQKGoV?height=450&amp;theme-id=1&amp;slug-hash=ExQKGoV&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed ExQKGoV\" title=\"CodePen Embed ExQKGoV\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/ExQKGoV\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>An example that is extremely unique and could just be what you are looking for, very interactive and creative &#8211; it really goes to show what you can do with some extra JavaScript.<\/p>\n\n\n\n<p>A circular menu with lots of animations and effects. You can hover over the different smaller circles to view them, and when clicked they will count as being selected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"15.-shutter-menu\">15. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/dydMwJv\" target=\"_blank\" rel=\"noopener nofollow\">Shutter Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_dydMwJv\" data-src=\"\/\/codepen.io\/anon\/embed\/dydMwJv?height=450&amp;theme-id=1&amp;slug-hash=dydMwJv&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed dydMwJv\" title=\"CodePen Embed dydMwJv\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/dydMwJv\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>A fully functioning example with a focus on a shutter based menu, vertical images as backgrounds and text to indicate which menu item category it is.<\/p>\n\n\n\n<p>Hover over each item so that the image is revealed and you can see more detail, clicked items will then take you to that page.<\/p>\n\n\n\n<p>This example even has its own mobile hamburger menu.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"16.-modern-javascript-context-menu\">16. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/poabjKa\" target=\"_blank\" rel=\"noopener nofollow\">Modern JavaScript Context Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_poabjKa\" data-src=\"\/\/codepen.io\/anon\/embed\/poabjKa?height=450&amp;theme-id=1&amp;slug-hash=poabjKa&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed poabjKa\" title=\"CodePen Embed poabjKa\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/poabjKa\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>Here&#8217;s another beautiful context menu using HTML, CSS and JavaScript.<\/p>\n\n\n\n<p>In this case, the context menu looks beautiful, modern and with rounded corners. It even allows the use of icons!<\/p>\n\n\n\n<p>Thanks to JavaScript, this context menu allows you to track the click events made in each of its items. Making it ideal to plug your own functionality on it.<\/p>\n\n\n\n<p>Check it out by yourself by clicking on the items and see how the JavaScript callbacks get fired.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"17.-top-bar-navigation-javascript-menu\">17. <a href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/MWQyZrN\" target=\"_blank\" rel=\"noopener nofollow\">Top Bar Navigation JavaScript Menu<\/a><\/h3>\n\n\n\n<div class=\"wp-block-cp-codepen-gutenberg-embed-block cp_embed_wrapper\"><iframe id=\"cp_embed_MWQyZrN\" data-src=\"\/\/codepen.io\/anon\/embed\/MWQyZrN?height=450&amp;theme-id=1&amp;slug-hash=MWQyZrN&amp;default-tab=css,result\" height=\"450\" scrolling=\"no\" frameborder=\"0\" allowfullscreen allowpaymentrequest name=\"CodePen Embed MWQyZrN\" title=\"CodePen Embed MWQyZrN\" class=\"cp_embed_iframe lazyload\" style=\"width:100%;overflow:hidden\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" data-load-mode=\"1\">CodePen Embed Fallback<\/iframe><\/div>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/codepen.io\/alvarotrigo\/pen\/MWQyZrN\" title=\"Open CodePen\" target=\"_blank\" rel=\"noopener nofollow\">Open CodePen<\/a><\/div>\n<\/div>\n\n\n\n<p>Hover your mouse over the menu items and watch the indicator icon slide between each link &#8211; all controlled via JavaScript.<\/p>\n\n\n\n<p>This example is very easy to expand, all you have to do is edit the HTML and add more menu links and the menu will accommodate extra links.<\/p>\n\n\n\n<p>You can also easily change the colour styles of this example to something else as well. You can also change the rebound effect by simply editing the variable <code>rebound<\/code> to zero in the JS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/create-a-slidebar-bullet-navigation-to-smoothly-snap-to-sections\/\">How to Create a SlideBar Bullet-Navigation<\/a> [JavaScript]<\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/css-accordion\/\">20 Pure CSS Accordions Menus<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/alvarotrigo.com\/blog\/html-css-tabs\/\">Best HTML and CSS Tabs examples<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a selection of the Most Beautiful Javascript Menus we&#8217;ve found out there. Copy these Codepen examples and use them on your own website.<\/p>\n","protected":false},"author":11,"featured_media":5217,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[107],"tags":[16,126,10,17],"class_list":["post-5218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-design","tag-inspiration","tag-javascript","tag-web"],"acf":[],"_links":{"self":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/5218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/comments?post=5218"}],"version-history":[{"count":3,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/5218\/revisions"}],"predecessor-version":[{"id":9501,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/posts\/5218\/revisions\/9501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media\/5217"}],"wp:attachment":[{"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/media?parent=5218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/categories?post=5218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alvarotrigo.com\/blog\/wp-json\/wp\/v2\/tags?post=5218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}