{"id":10410,"date":"2024-03-03T10:31:00","date_gmt":"2024-03-03T10:31:00","guid":{"rendered":"https:\/\/codehim.com\/?p=10410"},"modified":"2024-03-04T08:31:24","modified_gmt":"2024-03-04T03:31:24","slug":"bottom-navigation-bar-with-indicator-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/","title":{"rendered":"Bottom Navigation Bar with Indicator in JavaScript"},"content":{"rendered":"<p>This JavaScript code creates a bottom navigation bar with indicator functionality. It uses event listeners to highlight active icons, providing visual feedback for navigation. The &#8216;moveLight&#8217; function positions the indicator while &#8216;activeLink&#8217; manages the active state of icons. This code helps build a user-friendly navigation experience.<\/p>\n<p>You can use this code for web applications needing a sleek bottom navigation bar. Its benefit lies in enhancing user interaction by visually highlighting active icons during navigation.<\/p>\n<h2>How to Create Bottom Navigation Bar With Indicator In Javascript<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/boxicons.com\/\" target=\"_blank\" rel=\"noopener\">BoxIcons CSS<\/a> by adding the following CDN link into the head tag of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link href='https:\/\/unpkg.com\/boxicons@2.1.4\/css\/boxicons.min.css' rel='stylesheet'&gt;<\/pre>\n<p>2. Set up your HTML file. Include the necessary structure for the navigation bar.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;nav class=\"nav\"&gt;\r\n    &lt;ul class=\"nav__links\"&gt;\r\n      &lt;li class=\"nav__link active\"&gt;\r\n        &lt;a href=\"#\"&gt;&lt;i class='bx bx-home-alt-2'&gt;&lt;\/i&gt;&lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"nav__link\"&gt;\r\n        &lt;a href=\"#\"&gt;&lt;i class='bx bx-heart' &gt;&lt;\/i&gt;&lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"nav__link\"&gt;\r\n        &lt;a href=\"#\"&gt;&lt;i class='bx bx-plus-circle' &gt;&lt;\/i&gt;&lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"nav__link\"&gt;\r\n        &lt;a href=\"#\"&gt;&lt;i class='bx bx-user' &gt;&lt;\/i&gt;&lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li class=\"nav__link\"&gt;\r\n        &lt;a href=\"#\"&gt;&lt;i class='bx bx-bell' &gt;&lt;\/i&gt;&lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n\r\n      &lt;div class=\"nav__light\"&gt;&lt;\/div&gt;\r\n    &lt;\/ul&gt;\r\n  &lt;\/nav&gt;<\/pre>\n<p>3. Create a CSS file (<code>styles.css<\/code>) and style your navigation bar elements to achieve the desired appearance. You can modify colors, sizes, and positioning to match your design.<\/p>\n<pre class=\"prettyprint linenums lang-css\">\/* ------------ VARIABLES ------------ *\/\r\n:root{\r\n  \/* COLORS *\/\r\n  --tab-color: #191919;\r\n  --white-color: #fff;\r\n  --home-icon-color: #00f7ff;\r\n  --heart-icon-color: #ff0000;\r\n  --plus-icon-color: #adff2f;\r\n  --user-icon-color: #ee82ee;\r\n  --bell-icon-color: #ffff00;\r\n}\r\n\r\n\/* ------------ BASE ------------ *\/\r\n*{\r\n  margin: 0;\r\n  padding: 0;\r\n  box-sizing: border-box;\r\n  list-style: none;\r\n}\r\n\r\nbody{\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  height: 100vh;\r\n}\r\n\r\nli{\r\n  display: inline-block;\r\n}\r\n\r\n\/* ------------ MENU ------------ *\/\r\n.nav{\r\n  background-color: var(--tab-color);\r\n  width: 30em;\r\n  height: 8em;\r\n  border-radius: 2em;\r\n  padding: 0 2em;\r\n  box-shadow: 0 1em 1em rgba(0,0,0, .2);\r\n\r\n  display: flex;\r\n  align-items: center;\r\n\r\n  position: relative;\r\n  overflow: hidden;\r\n}\r\n\r\n.nav__links{\r\n  width: 100%;\r\n  display: flex;\r\n  justify-content: space-between;\r\n}\r\n\r\n.nav__link a{\r\n  color: var(--white-color);\r\n  font-size: 2.5rem;\r\n  opacity: 0.5;\r\n}\r\n\r\n.nav__light{\r\n  position: absolute;\r\n  top: 0;\r\n  left: 1.3em;\r\n  background-color: var(--white-color);\r\n  width: 4em;\r\n  height: .4em;\r\n  border-radius: 2px;\r\n\r\n  display: flex;\r\n  justify-content: center;\r\n\r\n  transition: .3s ease;\r\n}\r\n\r\n.nav__light::before{\r\n  content: '';\r\n  width: 5em;\r\n  height: 7em;\r\n  position: absolute;\r\n  top: .4em;\r\n  background: linear-gradient(to bottom, rgba(255,255,255, .3) -50%, rgba(255,255,255, 0) 90%);\r\n  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0% 100%);\r\n}\r\n\r\n\r\n.nav__link.active a{\r\n  opacity: 1;\r\n}\r\n\r\n.nav__link.active a .bx-home-alt-2{\r\n  color: var(--home-icon-color);\r\n  text-shadow: 0 0 15px var(--home-icon-color),\r\n               0 0 30px var(--home-icon-color),\r\n               0 0 45px var(--home-icon-color),\r\n               0 0 60px var(--home-icon-color);\r\n}\r\n\r\n.nav__link:nth-child(1).active ~ .nav__light{\r\n  background-color: var(--home-icon-color);\r\n}\r\n\r\n\r\n.nav__link.active a .bx-heart{\r\n  color: var(--heart-icon-color);\r\n  text-shadow: 0 0 15px var(--heart-icon-color),\r\n               0 0 30px var(--heart-icon-color),\r\n               0 0 45px var(--heart-icon-color),\r\n               0 0 60px var(--heart-icon-color);\r\n}\r\n\r\n.nav__link:nth-child(2).active ~ .nav__light{\r\n  background-color: var(--heart-icon-color);\r\n}\r\n\r\n\r\n.nav__link.active a .bx-plus-circle{\r\n  color: var(--plus-icon-color);\r\n  text-shadow: 0 0 15px var(--plus-icon-color),\r\n               0 0 30px var(--plus-icon-color),\r\n               0 0 45px var(--plus-icon-color),\r\n               0 0 60px var(--plus-icon-color);\r\n}\r\n\r\n.nav__link:nth-child(3).active ~ .nav__light{\r\n  background-color: var(--plus-icon-color);\r\n}\r\n\r\n\r\n\r\n.nav__link.active a .bx-user{\r\n  color: var(--user-icon-color);\r\n  text-shadow: 0 0 15px var(--user-icon-color),\r\n               0 0 30px var(--user-icon-color),\r\n               0 0 45px var(--user-icon-color),\r\n               0 0 60px var(--user-icon-color);\r\n}\r\n\r\n.nav__link:nth-child(4).active ~ .nav__light{\r\n  background-color: var(--user-icon-color);\r\n}\r\n\r\n\r\n.nav__link.active a .bx-bell{\r\n  color: var(--bell-icon-color);\r\n  text-shadow: 0 0 15px var(--bell-icon-color),\r\n               0 0 30px var(--bell-icon-color),\r\n               0 0 45px var(--bell-icon-color),\r\n               0 0 60px var(--bell-icon-color);\r\n}\r\n\r\n.nav__link:nth-child(5).active ~ .nav__light{\r\n  background-color: var(--bell-icon-color);\r\n}<\/pre>\n<p>4. Finally, in a JavaScript file (<code>script.js<\/code>), implement the logic for the navigation bar functionality.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const links = document.querySelectorAll('.nav__link');\r\nconst light = document.querySelector('.nav__light');\r\n\r\nfunction moveLight({offsetLeft, offsetWidth}){\r\n  light.style.left = `${offsetLeft - offsetWidth\/4}px`;\r\n}\r\n\r\nfunction activeLink(linkActive){\r\n  links.forEach(link =&gt; {\r\n    link.classList.remove('active');\r\n    linkActive.classList.add('active');\r\n  })\r\n}\r\n\r\n\r\nlinks.forEach((link) =&gt; {\r\n  link.addEventListener('click', (event) =&gt; {\r\n    moveLight(event.target);\r\n    activeLink(link);\r\n  })\r\n})<\/pre>\n<p>If desired, you can customize the colors of the icons by adjusting the variables in the CSS &#8216;:root&#8217; section. This step allows you to personalize the navigation bar to match your application&#8217;s theme.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created a Bottom Navigation Bar With Indicator on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code creates a bottom navigation bar with indicator functionality. It uses event listeners to highlight active icons, providing&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[],"class_list":["post-10410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-menu"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. 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\/bottom-navigation-bar-with-indicator-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-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-03-03T10:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-04T03:31:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"980\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Bottom Navigation Bar with Indicator in JavaScript\",\"datePublished\":\"2024-03-03T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/\"},\"wordCount\":227,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png\",\"articleSection\":[\"Menu &amp; Nav\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/\",\"name\":\"Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png\",\"datePublished\":\"2024-03-03T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:24+00:00\",\"description\":\"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png\",\"width\":1280,\"height\":980,\"caption\":\"Bottom Navigation Bar with Indicator in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-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\":\"Bottom Navigation Bar with Indicator 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":"Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. 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\/bottom-navigation-bar-with-indicator-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-03-03T10:31:00+00:00","article_modified_time":"2024-03-04T03:31:24+00:00","og_image":[{"width":1280,"height":980,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Bottom Navigation Bar with Indicator in JavaScript","datePublished":"2024-03-03T10:31:00+00:00","dateModified":"2024-03-04T03:31:24+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/"},"wordCount":227,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png","articleSection":["Menu &amp; Nav"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/","url":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/","name":"Bottom Navigation Bar with Indicator in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png","datePublished":"2024-03-03T10:31:00+00:00","dateModified":"2024-03-04T03:31:24+00:00","description":"Here is a free code snippet to create a Bottom Navigation Bar with Indicator in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Bottom-Navigation-Bar-with-Indicator-in-JavaScript.png","width":1280,"height":980,"caption":"Bottom Navigation Bar with Indicator in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/menu\/bottom-navigation-bar-with-indicator-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":"Bottom Navigation Bar with Indicator 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":5004,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10410","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=10410"}],"version-history":[{"count":1,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10410\/revisions"}],"predecessor-version":[{"id":11328,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10410\/revisions\/11328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/10420"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=10410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=10410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=10410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}