{"id":6171,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6171"},"modified":"2024-01-22T14:43:13","modified_gmt":"2024-01-22T09:43:13","slug":"fullscreen-hamburger-menu-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/","title":{"rendered":"Fullscreen Hamburger Menu in JavaScript"},"content":{"rendered":"<p>This lightweight JavaScript code snippet helps you to create a fullscreen hamburger menu. The menu comes with an <a href=\"https:\/\/codehim.com\/menu\/animated-slideout-sidebar-menu-with-css3-javascript\/\" target=\"_blank\" rel=\"noopener\">animated hamburger toggle button<\/a> and a dim background overlay effect. Moreover, the menu can be fully customized with additional CSS according to your needs.<\/p>\n<h2>How to Create Fullscreen Hamburger Menu in JavaScript<\/h2>\n<p>1. In the very first step, create the HTML structure for the fullscreen hamburger menu as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container\"&gt;\r\n   &lt;div class=\"nav-fullscreen\"&gt;\r\n      &lt;ul class=\"nav-fullscreen__items\"&gt;\r\n         &lt;li class=\"nav-fullscreen__item\"&gt;&lt;a href=\"#\"&gt;HTML&lt;\/a&gt;&lt;\/li&gt;\r\n         &lt;li class=\"nav-fullscreen__item\"&gt;&lt;a href=\"#\"&gt;CSS&lt;\/a&gt;&lt;\/li&gt;\r\n         &lt;li class=\"nav-fullscreen__item\"&gt;&lt;a href=\"#\"&gt;JavaScript&lt;\/a&gt;&lt;\/li&gt;\r\n         &lt;li class=\"nav-fullscreen__item\"&gt;&lt;a href=\"#\"&gt;Menu&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n   &lt;\/div&gt;\r\n   &lt;div class=\"hamburger hamburger--steps\"&gt;\r\n      &lt;div class=\"hamburger__line\"&gt;&lt;\/div&gt;\r\n      &lt;div class=\"hamburger__line\"&gt;&lt;\/div&gt;\r\n      &lt;div class=\"hamburger__line\"&gt;&lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. After that, style the menu using the following CSS styles. If you want to customize the menu, change the CSS values as you want. You can set the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/background-image\" target=\"_blank\" rel=\"noopener\">custom background image<\/a> that will show behind the menu.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.container {\r\n  position: relative;\r\n  overflow: hidden;\r\n  padding: 60px;\r\n  max-width: 700px;\r\n  height: 550px;\r\n  margin: 0 auto;\r\n  background-color: white;\r\n  border-radius: 5px;\r\n  box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);\r\n  background-image: url(\"https:\/\/snap-photos.s3.amazonaws.com\/img-thumbs\/960w\/1L5F5R0M42.jpg\");\r\n  background-size: cover;\r\n}\r\n\r\n.hamburger {\r\n  position: relative;\r\n  z-index: 9000;\r\n  width: 2.5em;\r\n  height: 2.5em;\r\n}\r\n.hamburger:hover {\r\n  cursor: pointer;\r\n}\r\n\r\n.hamburger__line {\r\n  content: \" \";\r\n  display: block;\r\n  width: 100%;\r\n  height: 0.1875em;\r\n  background: black;\r\n  border-radius: 0.5em;\r\n  margin-bottom: 0.5em;\r\n}\r\n.hamburger__line:last-child {\r\n  margin-bottom: 0;\r\n}\r\n\r\n.hamburger--steps .hamburger__line {\r\n  transition: width 0.12s ease-in-out;\r\n}\r\n.hamburger--steps .hamburger__line:nth-child(2) {\r\n  width: 80%;\r\n}\r\n.hamburger--steps .hamburger__line:last-child {\r\n  width: 55%;\r\n}\r\n\r\n.hamburger--steps-right .hamburger__line {\r\n  float: right;\r\n}\r\n\r\n.hamburger--steps:hover .hamburger__line {\r\n  width: 100%;\r\n}\r\n\r\n.hamburger--active.hamburger--steps .hamburger__line {\r\n  transition: none;\r\n  width: 100%;\r\n}\r\n\r\n.hamburger--active .hamburger__line {\r\n  position: absolute;\r\n  top: 0.8em;\r\n  margin: 0;\r\n  background: white;\r\n}\r\n.hamburger--active .hamburger__line:first-child {\r\n  transform: rotate(-45deg);\r\n}\r\n.hamburger--active .hamburger__line:nth-child(2) {\r\n  display: none;\r\n}\r\n.hamburger--active .hamburger__line:last-child {\r\n  transform: rotate(45deg);\r\n}\r\n\r\n.nav-fullscreen {\r\n  position: fixed;\r\n  display: flex;\r\n  z-index: 800;\r\n  top: 0;\r\n  right: 0;\r\n  bottom: 0;\r\n  left: 0;\r\n  opacity: 0;\r\n  visibility: hidden;\r\n  justify-content: center;\r\n  align-items: center;\r\n  background-color: rgba(0, 0, 0, 0.5);\r\n  transition: opacity 0.2s, visibility 0.2s;\r\n}\r\n.nav-fullscreen--open {\r\n  opacity: 1;\r\n  visibility: visible;\r\n}\r\n.nav-fullscreen__items {\r\n  margin: 0;\r\n  padding: 0;\r\n  list-style: none;\r\n  text-align: center;\r\n  font-size: 3rem;\r\n  line-height: 6rem;\r\n}\r\n@media (max-width: 375px) {\r\n  .nav-fullscreen__items {\r\n    font-size: 2rem;\r\n    line-height: 4rem;\r\n  }\r\n}\r\n.nav-fullscreen__item a {\r\n  text-decoration: none;\r\n  color: white;\r\n  transition: color 0.1s ease-in-out;\r\n}\r\n.nav-fullscreen__item a:hover {\r\n  color: #CCCCCC;\r\n}\r\n\r\n@-webkit-keyframes fadeInDown {\r\n  from {\r\n    opacity: 0;\r\n    transform: translate3d(0, -30%, 0);\r\n  }\r\n  to {\r\n    opacity: 1;\r\n    transform: none;\r\n  }\r\n}\r\n\r\n@keyframes fadeInDown {\r\n  from {\r\n    opacity: 0;\r\n    transform: translate3d(0, -30%, 0);\r\n  }\r\n  to {\r\n    opacity: 1;\r\n    transform: none;\r\n  }\r\n}\r\n@-webkit-keyframes fadeOutUp {\r\n  from {\r\n    opacity: 1;\r\n    transform: none;\r\n  }\r\n  to {\r\n    opacity: 0;\r\n    transform: translate3d(0, -30%, 0);\r\n  }\r\n}\r\n@keyframes fadeOutUp {\r\n  from {\r\n    opacity: 1;\r\n    transform: none;\r\n  }\r\n  to {\r\n    opacity: 0;\r\n    transform: translate3d(0, -30%, 0);\r\n  }\r\n}\r\n@-webkit-keyframes fadeIn {\r\n  from {\r\n    opacity: 0;\r\n  }\r\n  to {\r\n    opacity: 1;\r\n  }\r\n}\r\n@keyframes fadeIn {\r\n  from {\r\n    opacity: 0;\r\n  }\r\n  to {\r\n    opacity: 1;\r\n  }\r\n}\r\n<\/pre>\n<p>3. Finally, add the following JavaScript function between the &lt;script&gt; tag before closing the body tag.<\/p>\n<pre class=\"prettyprint linenums lang-js\">document.addEventListener(\"DOMContentLoaded\", function() {\r\n\r\n\tdocument.querySelector('.hamburger').addEventListener(\"click\", function() {\r\n\t\tthis.classList.toggle(\"hamburger--active\");\r\n\t\tdocument.querySelector(\".nav-fullscreen\").classList.toggle(\"nav-fullscreen--open\");\r\n\t});\r\n\t\r\n});\r\n<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this fullscreen hamburger menu into your project. If you have any questions or facing issues, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lightweight JavaScript code snippet helps you to create a fullscreen hamburger menu. The menu comes with an animated hamburger&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6213,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[49],"class_list":["post-6171","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>Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.\" \/>\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\/fullscreen-hamburger-menu-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\" \/>\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-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:43:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Fullscreen Hamburger Menu in JavaScript\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\"},\"wordCount\":153,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png\",\"keywords\":[\"Hamburger Menu\"],\"articleSection\":[\"Menu &amp; Nav\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\",\"name\":\"Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:13+00:00\",\"description\":\"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png\",\"width\":1280,\"height\":960,\"caption\":\"Fullscreen Hamburger Menu in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#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\":\"Fullscreen Hamburger Menu in JavaScript\"}]},{\"@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":"Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim","description":"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.","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\/fullscreen-hamburger-menu-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim","og_description":"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.","og_url":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:43:13+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Fullscreen Hamburger Menu in JavaScript","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:13+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/"},"wordCount":153,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png","keywords":["Hamburger Menu"],"articleSection":["Menu &amp; Nav"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/","url":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/","name":"Fullscreen Hamburger Menu in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:13+00:00","description":"Here is a lightweight fullscreen hamburger menu in JavaScript. You can view demo and download code for fullscreen hamburger menu.","breadcrumb":{"@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/04\/fullscreen-hamburger-menu-in-javascript.png","width":1280,"height":960,"caption":"Fullscreen Hamburger Menu in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/menu\/fullscreen-hamburger-menu-in-javascript\/#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":"Fullscreen Hamburger Menu in JavaScript"}]},{"@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":4405,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6171","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=6171"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6171\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6213"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}