{"id":9821,"date":"2024-01-12T18:09:00","date_gmt":"2024-01-12T18:09:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9821"},"modified":"2024-01-22T16:12:38","modified_gmt":"2024-01-22T11:12:38","slug":"overlay-hamburger-menu-code-with-example","status":"publish","type":"post","link":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/","title":{"rendered":"Overlay Hamburger Menu Code with Example"},"content":{"rendered":"<p>This code example helps you to create a stylish overlay menu with a hamburger button. The <code>openMenu<\/code> function toggles the menu&#8217;s visibility, triggered by clicking the hamburger icon. The menu appears with smooth animations, providing an elegant user experience.<\/p>\n<p>You can implement this code to enhance your website&#8217;s navigation. Moreover, you can customize the menu using additional CSS according to your website&#8217;s theme.<\/p>\n<h2>How to Create an Overlay Hamburger Menu<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/fontawesome.com\/\" target=\"_blank\" rel=\"noopener\">Font Awesome CSS<\/a> (for icons) by adding the following CDN link into the head tag of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel='stylesheet' href='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.css'&gt;<\/pre>\n<p>2. Create a basic HTML structure with a container for the menu and the main content. Insert a button with the class <code>btn-menu<\/code> to trigger the menu.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"flexcontainer\"&gt;\r\n  &lt;div class=\"left\"&gt;&lt;\/div&gt;\r\n  &lt;div class=\"right\"&gt;\r\n    &lt;div&gt;\r\n      &lt;h1&gt;Overlay Menu - Vanilla Js&lt;\/h1&gt;\r\n      &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.nulla pariatur.&lt;\/p&gt;\r\n      &lt;br&gt;\r\n\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"toggle-menu\"&gt;\r\n      &lt;a class=\"btn-menu\"&gt;&lt;i class=\"fa fa-bars\"&gt;&lt;\/i&gt;&lt;\/a&gt;\r\n    &lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n\r\n\r\n&lt;div class=\"overlay\"&gt;\r\n  &lt;ul&gt;\r\n    &lt;li&gt;&lt;a&gt;Home&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a&gt;About Us&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a&gt;Tour Packages&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a&gt;Explore Kenya&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a&gt;Contact Us&lt;\/a&gt;&lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>3. The CSS code provides the styling for the menu, ensuring a visually appealing overlay effect. Customize colors and dimensions according to your website&#8217;s design.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n\t  background: #eee;\r\n\t}\r\n\r\n\t.flexcontainer {\r\n\t   display: -webkit-flex;\r\n\t   display: flex;\r\n\t   -webkit-flex-direction: row;\r\n\t   flex-direction: row;\r\n\t   -webkit-align-items: flex-start;\r\n\t   align-items: flex-start;\r\n\t  background-color: #eee;\r\n\t}\r\n\r\n\t.left {\r\n\t    background: #0cebeb; \/* fallback for old browsers *\/\r\n  background: -webkit-linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6); \/* Chrome 10-25, Safari 5.1-6 *\/\r\n  background: linear-gradient(to right, #0cebeb, #20e3b2, #29ffc6);\r\n\t  background-size: cover !important;\r\n\t  height: 100vh;\r\n\t  width: 55%;\r\n\t  box-sizing: border-box;\r\n\t  animation: motion 6s linear infinite;\r\n\t  -webkit-animation: motion 6s linear infinite;\r\n\t}\r\n\r\n\t.right {\r\n\t  width: 45%;\r\n\t  box-sizing: border-box;\r\n\t  margin: auto;\r\n\t}\r\n\r\n\t.right div {\r\n\t  width: 500px;\r\n\t  margin: auto;\r\n\t  padding: 20px;\r\n\t}\r\n\r\n\t.right div h1 {\r\n\t  font-size: 3.7rem;\r\n\t  font-family: 'Dancing Script', sans-serif;\r\n\t}\r\n\r\n\t.right div p {\r\n\t  font-family: 'Montserrat', sans-serif;\r\n\t  font-weight: 200;\r\n\t  line-height: 25px;\r\n\t}\r\n\r\n\r\n\t.btn-menu {\r\n         width: 60px;\r\n         height: 60px;\r\n        box-sizing: border-box;\r\n\t  position: absolute;\r\n\t  background: #0cebeb;\r\n\t  padding: 20px;\r\n\t  top: 30px;\r\n\t  right: 50px;\r\n\t  border-radius: 50%;\r\n\t  z-index: 9999;\r\n         color:#fff;\r\n         font-size: 26px;\r\n          text-align: center;\r\n\t}\r\n.btn-menu i{\r\n   vertical-align: text-top;\r\n}\r\n\t.btn-menu:hover,\r\n  .btn-menu:active {\r\n\t  background: #29ffc6;\r\n\t  cursor: pointer;\r\n    transition: color .5s ease;\r\n\t}\r\n\r\n\r\n\t.overlay {\r\n\t  background-color: rgba(0,0,0,1);\r\n\t  color: #fff;\r\n\t  height: 100%;\r\n\t  width: 100%;\r\n\t  position: fixed;\r\n\t  text-align: center;\r\n\t  transition: opacity 0.5s ease-in-out;\r\n\t  opacity: 0;\r\n\t}\r\n\r\n\t .open {\r\n\t  \tposition: fixed;\r\n        top: 0;\r\n        right: 0;\r\n        left: 0;\r\n        bottom: 0;\r\n        max-height: 1200px;\r\n        opacity: 1;\r\n        z-index: 100;\r\n        transition: all 0.3s ease;\r\n\t}\r\n\r\n\t.overlay ul {\r\n\t\tlist-style-type: none;\r\n    \tmargin-top: 2em;\r\n    \tfont-size: 3rem;\r\n\t}\r\n\t.overlay ul li a{\r\n\t\tposition: relative;\r\n    display: inline-block;\r\n    font-size: 35px;\r\n    font-weight: 300;\r\n    color: #fff;\r\n    -webkit-transition: color 0.5s ease;\r\n    transition: color 0.5s ease;\r\n    padding: 3px 0;\r\n    margin-bottom: 40px;\r\n\t}\r\n\r\n\t.overlay ul li a:hover,\r\n\t.overlay ul li a:active {\r\n\t\tcolor: #787878;\r\n\t\tcursor: pointer;\r\n\t\ttransition: all 0.3s linear;\r\n\t}\r\n\r\n.overlay ul li a:hover::after,\r\n.overlay ul li a:hover::before {\r\n  width: 100%;\r\n  left: 0;\r\n}\r\n\r\n.overlay ul li a::after,\r\n.overlay ul li a::before {\r\n  content: \"\";\r\n  position: absolute;\r\n  width: 0;\r\n  right: 0;\r\n  height: 2px;\r\n  top: calc(100% + 5px);\r\n}\r\n\r\n.overlay ul li a::before {\r\n  -webkit-transition: width 0.4s cubic-bezier(0.51, 0.18, 0, 0.88) 0.1s;\r\n    transition: width 0.4s cubic-bezier(0.51, 0.18, 0, 0.88) 0.1s;\r\n    background: #2196f3;\r\n}\r\n\r\n.overlay ul li a::before {\r\n -webkit-transition: width 0.5s cubic-bezier(0.29, 0.18, 0.26, 0.83);\r\n    transition: width 0.5s cubic-bezier(0.29, 0.18, 0.26, 0.83);\r\n    background: #20e3b2;\r\n}<\/pre>\n<p>4. Finally, add the following JavaScript code to your project. It defines a function <code>openMenu<\/code> that toggles the menu&#8217;s visibility. When the <code>.btn-menu<\/code> is clicked, it triggers the <code>openMenu<\/code> function, showcasing or hiding the overlay menu.<\/p>\n<pre class=\"prettyprint linenums lang-js\">function openMenu() {\r\n  \t\tdocument.querySelector('.overlay').classList.toggle(\"open\");\r\n}\r\n\r\ndocument.querySelector('.btn-menu').onclick = openMenu;<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this code example into your project to create an overlay hamburger menu. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code example helps you to create a stylish overlay menu with a hamburger button. The openMenu function toggles the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9825,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[49],"class_list":["post-9821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-menu","tag-hamburger-menu"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Overlay Hamburger Menu Code with Example &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Overlay Hamburger Menu Code with Example &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-12T18:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:12:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Overlay Hamburger Menu Code with Example\",\"datePublished\":\"2024-01-12T18:09:00+00:00\",\"dateModified\":\"2024-01-22T11:12:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\"},\"wordCount\":217,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png\",\"keywords\":[\"Hamburger Menu\"],\"articleSection\":[\"Menu &amp; Nav\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\",\"url\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\",\"name\":\"Overlay Hamburger Menu Code with Example &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png\",\"datePublished\":\"2024-01-12T18:09:00+00:00\",\"dateModified\":\"2024-01-22T11:12:38+00:00\",\"description\":\"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png\",\"width\":1280,\"height\":960,\"caption\":\"Overlay Hamburger Menu Code with Example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Menu &amp; Nav\",\"item\":\"https:\/\/codehim.com\/category\/menu\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Overlay Hamburger Menu Code with Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Overlay Hamburger Menu Code with Example &#8212; CodeHim","description":"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/","og_locale":"en_US","og_type":"article","og_title":"Overlay Hamburger Menu Code with Example &#8212; CodeHim","og_description":"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-12T18:09:00+00:00","article_modified_time":"2024-01-22T11:12:38+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Overlay Hamburger Menu Code with Example","datePublished":"2024-01-12T18:09:00+00:00","dateModified":"2024-01-22T11:12:38+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/"},"wordCount":217,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png","keywords":["Hamburger Menu"],"articleSection":["Menu &amp; Nav"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/","url":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/","name":"Overlay Hamburger Menu Code with Example &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png","datePublished":"2024-01-12T18:09:00+00:00","dateModified":"2024-01-22T11:12:38+00:00","description":"Here is a free code snippet to create a Overlay Hamburger Menu Code with Example. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Overlay-Hamburger-Menu-Code-with-Example.png","width":1280,"height":960,"caption":"Overlay Hamburger Menu Code with Example"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/menu\/overlay-hamburger-menu-code-with-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Menu &amp; Nav","item":"https:\/\/codehim.com\/category\/menu\/"},{"@type":"ListItem","position":3,"name":"Overlay Hamburger Menu Code with Example"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1168,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9821"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9821\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9825"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}