{"id":10556,"date":"2024-03-03T10:30:00","date_gmt":"2024-03-03T10:30:00","guid":{"rendered":"https:\/\/codehim.com\/?p=10556"},"modified":"2024-03-04T08:30:44","modified_gmt":"2024-03-04T03:30:44","slug":"flyout-menu-with-scroll-animation","status":"publish","type":"post","link":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/","title":{"rendered":"Flyout Menu with Scroll Animation"},"content":{"rendered":"<p>This code creates a responsive sidebar with an animated sub-menus, providing smooth navigation. Hover over the main menu items, and the corresponding sub-menu elegantly scrolls into view. This feature is particularly useful for websites with multiple sections, as it keeps the interface clean and user-friendly. Explore the demo to witness the seamless scroll animation in action.<\/p>\n<p>You can use it for admin dashboards, content-heavy sites, or applications with multiple sections.<\/p>\n<h2>How to Create a Flyout Menu with Scroll Animation<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/meyerweb.com\/eric\/tools\/css\/reset\/\" target=\"_blank\" rel=\"noopener\">Reset CSS<\/a> and <a href=\"https:\/\/fontawesome.com\/\" target=\"_blank\" rel=\"noopener\">Font Awesome CSS<\/a> by adding the following CDN links 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\/meyer-reset\/2.0\/reset.min.css\"&gt;\r\n&lt;link rel='stylesheet' href='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.min.css'&gt;<\/pre>\n<p>2. Now, copy\/paste the following HTML code on your website. Adjust the HTML structure based on your website&#8217;s layout. The code assumes a sidebar, sub-menu, and top bar. Customize classes and content to suit your design.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"sidebar\"&gt;\r\n\t&lt;div class=\"logo\"&gt;\r\n\t\t&lt;img src=\"http:\/\/placehold.it\/50\" alt=\"\"&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;div class=\"menu\"&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-item active\" data-menu=\"dashboard\"&gt;\r\n\t\t\t&lt;div class=\"indicator\"&gt;&lt;\/div&gt;\r\n\t\t\t&lt;i class=\"nrd-home\"&gt;&lt;\/i&gt;\r\n\t\t&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-item\" data-menu=\"email\"&gt;\r\n\t\t\t&lt;div class=\"indicator\"&gt;&lt;\/div&gt;\r\n\t\t\t&lt;i class=\"nrd-email\"&gt;&lt;\/i&gt;\r\n\t\t&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-item\" data-menu=\"mobile\"&gt;\r\n\t\t\t&lt;div class=\"indicator\"&gt;&lt;\/div&gt;\r\n\t\t\t&lt;i class=\"nrd-sms\"&gt;&lt;\/i&gt;\r\n\t\t&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-item\" data-menu=\"contacts\"&gt;\r\n\t\t\t&lt;div class=\"indicator\"&gt;&lt;\/div&gt;\r\n\t\t\t&lt;i class=\"nrd-contacts\"&gt;&lt;\/i&gt;\r\n\t\t&lt;\/a&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"sub-menu\"&gt;\r\n\t&lt;div class=\"menu-item\" data-menu=\"dashboard\"&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Home&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Approvals&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Change Account&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Credit Packs&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Blog&lt;\/a&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;div class=\"menu-item\" data-menu=\"email\"&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Send an Email&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Drafts&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Email &amp; Template Manager&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Sent Items&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Automation&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Reports&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Media Manager&lt;\/a&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;div class=\"menu-item\" data-menu=\"mobile\"&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Send a Push Notification&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Send a Text Message&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Drafts&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Inbox&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Sent Items&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Reports&lt;\/a&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;div class=\"menu-item\" data-menu=\"contacts\"&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Add New Contact&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Data Entry Form&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Upload a CSV&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Contacts List&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Segments&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Data Tags&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Data Export&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Upload History&lt;\/a&gt;\r\n\t\t&lt;a href=\"#\" class=\"menu-link\"&gt;Heatmap&lt;\/a&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;div class=\"topbar\"&gt;\r\n  &lt;!-- &lt;div class=\"contextual-menu\"&gt;\r\n\t\t&lt;i class=\"nrd-untitled-1-03\"&gt;&lt;\/i&gt;\r\n\t&lt;\/div&gt; --&gt;\r\n\t&lt;div class=\"profile\"&gt;\r\n\t\t&lt;img src=\"http:\/\/placehold.it\/80\" alt=\"\"&gt;\r\n\t\t&lt;h4&gt;Nord Chetbi&lt;\/h4&gt;\r\n\t\t&lt;h5&gt;1234 The Winchester Pub&lt;\/h5&gt;\r\n\t\t&lt;div class=\"caret\"&gt;&amp;#9660;&lt;\/div&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>3. Now, style the menu using the following CSS code. Customize the CSS styles to match your project&#8217;s theme. Modify colors, dimensions, and fonts as needed. Pay attention to the sidebar, sub-menu, and top bar styling for a cohesive look.<\/p>\n<p>Replace the placeholder icons with your preferred icons. Ensure to update the CSS code associated with icon fonts accordingly.<\/p>\n<pre class=\"prettyprint linenums lang-css\">@import url(\"https:\/\/fonts.googleapis.com\/css?family=Roboto:300,700\");\r\n\/* nordchetbicom *\/\r\n@font-face {\r\n  font-family: \"nordchetbicom\";\r\n  src: url(\"https:\/\/file.myfontastic.com\/NGLcqzzok6DWuamgKiTQrK\/fonts\/1547029532.eot\");\r\n  src: url(\"https:\/\/file.myfontastic.com\/NGLcqzzok6DWuamgKiTQrK\/fonts\/1547029532.eot?#iefix\") format(\"embedded-opentype\"), url(\"https:\/\/file.myfontastic.com\/NGLcqzzok6DWuamgKiTQrK\/fonts\/1547029532.woff\") format(\"woff\"), url(\"https:\/\/file.myfontastic.com\/NGLcqzzok6DWuamgKiTQrK\/fonts\/1547029532.ttf\") format(\"truetype\"), url(\"https:\/\/file.myfontastic.com\/NGLcqzzok6DWuamgKiTQrK\/fonts\/1547029532.svg#1547029532\") format(\"svg\");\r\n  font-weight: normal;\r\n  font-style: normal;\r\n}\r\n.cd__main{\r\n   display: block !important;\r\n   position: relative;\r\n   overflow: hidden;\r\n   \r\n}\r\n\r\n[data-icon]:before {\r\n  font-family: \"nordchetbicom\" !important;\r\n  content: attr(data-icon);\r\n  font-style: normal !important;\r\n  font-weight: normal !important;\r\n  font-variant: normal !important;\r\n  text-transform: none !important;\r\n  speak: none;\r\n  line-height: 1;\r\n  -webkit-font-smoothing: antialiased;\r\n  -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n[class^=nrd-]:before,\r\n[class*=\" nrd-\"]:before {\r\n  font-family: \"nordchetbicom\" !important;\r\n  font-style: normal !important;\r\n  font-weight: normal !important;\r\n  font-variant: normal !important;\r\n  text-transform: none !important;\r\n  speak: none;\r\n  line-height: 1;\r\n  -webkit-font-smoothing: antialiased;\r\n  -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.nrd-addons:before {\r\n  content: \"i\";\r\n}\r\n\r\n.nrd-broadcast:before {\r\n  content: \"j\";\r\n}\r\n\r\n.nrd-contacts:before {\r\n  content: \"k\";\r\n}\r\n\r\n.nrd-email:before {\r\n  content: \"l\";\r\n}\r\n\r\n.nrd-home:before {\r\n  content: \"m\";\r\n}\r\n\r\n.nrd-my-addons:before {\r\n  content: \"n\";\r\n}\r\n\r\n.nrd-push:before {\r\n  content: \"o\";\r\n}\r\n\r\n.nrd-scheduler:before {\r\n  content: \"p\";\r\n}\r\n\r\n.nrd-sms:before {\r\n  content: \"q\";\r\n}\r\n\r\n.nrd-social:before {\r\n  content: \"r\";\r\n}\r\n\r\n.nrd-system-addons:before {\r\n  content: \"s\";\r\n}\r\n\r\n.nrd-untitled-1-03:before {\r\n  content: \"t\";\r\n}\r\n\r\n.nrd-untitled-1-04:before {\r\n  content: \"u\";\r\n}\r\n\r\n.nrd-untitled-1-05:before {\r\n  content: \"v\";\r\n}\r\n\r\n.nrd-zonal:before {\r\n  content: \"w\";\r\n}\r\n\r\nbody {\r\n  background: #eff0e9;\r\n  color: #3f4247;\r\n  font-family: \"Roboto\", sans-serif;\r\n  font-size: 16px;\r\n  line-height: 1.75;\r\n  font-weight: 300;\r\n}\r\n\r\ndiv, a {\r\n  display: block;\r\n  box-sizing: border-box;\r\n  text-decoration: none;\r\n}\r\n\r\na {\r\n  color: inherit;\r\n  cursor: pointer;\r\n}\r\n\r\ni {\r\n  font-size: 1.5em;\r\n}\r\n\r\n.caret {\r\n  transform: scale(1, 0.5);\r\n  font-size: 0.8em;\r\n}\r\n\r\n.sidebar {\r\n  width: 75px;\r\n  height: 100vh;\r\n  background: #fff;\r\n  position: relative;\r\n  z-index: 2;\r\n  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\r\n}\r\n.sidebar:hover + .sub-menu {\r\n  transform: translate(0, 0);\r\n}\r\n.sidebar .logo {\r\n  height: 75px;\r\n  width: 75px;\r\n}\r\n.sidebar .logo img {\r\n  width: 40px;\r\n  height: 40px;\r\n  margin: 0 auto;\r\n  padding-top: 17.5px;\r\n  display: block;\r\n}\r\n.sidebar .menu {\r\n  position: absolute;\r\n  top: 100px;\r\n  z-index: 2;\r\n}\r\n.sidebar .menu .menu-item {\r\n  position: relative;\r\n  width: 75px;\r\n  height: 75px;\r\n  text-align: center;\r\n  line-height: 73px;\r\n  opacity: 0.3;\r\n  cursor: pointer;\r\n}\r\n.sidebar .menu .menu-item.active {\r\n  opacity: 1;\r\n}\r\n.sidebar .menu .menu-item.active:before {\r\n  display: block;\r\n}\r\n.sidebar .menu .menu-item:before, .sidebar .menu .menu-item:after {\r\n  content: \"\";\r\n  display: none;\r\n  position: absolute;\r\n  left: 0;\r\n  top: 0;\r\n  height: 100%;\r\n  width: 5px;\r\n  background: #000;\r\n  border-top-right-radius: 5px;\r\n  border-bottom-right-radius: 5px;\r\n  transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86);\r\n}\r\n.sidebar .menu .menu-item:after {\r\n  left: 95%;\r\n}\r\n.sidebar .menu .menu-item:hover {\r\n  opacity: 1;\r\n}\r\n.sidebar .menu .menu-item:hover:before {\r\n  display: block;\r\n  left: calc(100% - 5px);\r\n  border-top-right-radius: 0px;\r\n  border-bottom-right-radius: 0px;\r\n  border-top-left-radius: 5px;\r\n  border-bottom-left-radius: 5px;\r\n}\r\n.sidebar .menu .menu-item:hover:after {\r\n  display: block;\r\n  width: 10px;\r\n  filter: blur(15px);\r\n}\r\n.sidebar .menu .menu-item[data-menu=dashboard]:before, .sidebar .menu .menu-item[data-menu=dashboard]:after {\r\n  background: #acc64f;\r\n}\r\n.sidebar .menu .menu-item[data-menu=email]:before, .sidebar .menu .menu-item[data-menu=email]:after {\r\n  background: #4f8dbf;\r\n}\r\n.sidebar .menu .menu-item[data-menu=mobile]:before, .sidebar .menu .menu-item[data-menu=mobile]:after {\r\n  background: #fbca54;\r\n}\r\n.sidebar .menu .menu-item[data-menu=contacts]:before, .sidebar .menu .menu-item[data-menu=contacts]:after {\r\n  background: #fc575e;\r\n}\r\n\r\n.sub-menu {\r\n  box-sizing: border-box;\r\n  display: block;\r\n  position: absolute;\r\n  top: 0;\r\n  left: 75px;\r\n  background: #3f4247;\r\n  width: 300px;\r\n  height: 100vh;\r\n  max-height: 100vh;\r\n  padding: 500px 35px 300px;\r\n  color: #fff;\r\n  overflow-y: scroll;\r\n  overflow-x: hidden;\r\n  z-index: 1;\r\n  transform: translate(-100%, 0);\r\n  transition: transform 0.2s ease-out;\r\n}\r\n.sub-menu:hover {\r\n  transform: translate(0, 0);\r\n}\r\n.sub-menu::-webkit-scrollbar-track {\r\n  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\r\n  background-color: rgba(255, 255, 255, 0.1);\r\n}\r\n.sub-menu::-webkit-scrollbar {\r\n  width: 6px;\r\n  background-color: rgba(255, 255, 255, 0.1);\r\n}\r\n.sub-menu::-webkit-scrollbar-thumb {\r\n  background-color: rgba(255, 255, 255, 0.2);\r\n}\r\n.sub-menu .menu-item {\r\n  margin-bottom: 100px;\r\n}\r\n.sub-menu .menu-item:before {\r\n  content: attr(data-menu);\r\n  display: block;\r\n  font-size: 1.5em;\r\n  text-transform: capitalize;\r\n  margin-bottom: 20px;\r\n}\r\n.sub-menu .menu-item[data-menu=dashboard]:before {\r\n  color: #acc64f;\r\n}\r\n.sub-menu .menu-item[data-menu=email]:before {\r\n  color: #4f8dbf;\r\n}\r\n.sub-menu .menu-item[data-menu=mobile]:before {\r\n  color: #fbca54;\r\n}\r\n.sub-menu .menu-item[data-menu=contacts]:before {\r\n  color: #fc575e;\r\n}\r\n.sub-menu .menu-item .menu-link {\r\n  opacity: 0.6;\r\n}\r\n.sub-menu .menu-item .menu-link:hover {\r\n  opacity: 1;\r\n}\r\n\r\n.topbar {\r\n  position: absolute;\r\n  top: 0;\r\n  right: 0;\r\n  width: calc(100vw - 75px);\r\n  height: 75px;\r\n  display: block;\r\n  padding: 17.5px;\r\n}\r\n.topbar &gt; div {\r\n  float: right;\r\n}\r\n.topbar .contextual-menu {\r\n  display: block;\r\n  width: 40px;\r\n  height: 40px;\r\n  text-align: center;\r\n  line-height: 47px;\r\n  cursor: pointer;\r\n  font-size: 1.2em;\r\n  transition: all 0.1s ease-out;\r\n}\r\n.topbar .contextual-menu:hover {\r\n  color: #acc64f;\r\n}\r\n.topbar .profile {\r\n  display: block;\r\n  width: 190px;\r\n  position: relative;\r\n  cursor: pointer;\r\n}\r\n.topbar .profile h4, .topbar .profile h5 {\r\n  white-space: nowrap;\r\n  overflow: hidden;\r\n  text-overflow: ellipsis;\r\n  max-width: 120px;\r\n}\r\n.topbar .profile h4 {\r\n  text-transform: uppercase;\r\n  font-weight: 700;\r\n  font-size: 0.8em;\r\n  margin-bottom: -5px;\r\n  padding-bottom: 0;\r\n}\r\n.topbar .profile h5 {\r\n  font-size: 0.8em;\r\n}\r\n.topbar .profile img {\r\n  width: 40px;\r\n  height: 40px;\r\n  border-radius: 100%;\r\n  float: left;\r\n  margin-right: 10px;\r\n}\r\n.topbar .profile .caret {\r\n  position: absolute;\r\n  right: 0;\r\n  bottom: 1px;\r\n}<\/pre>\n<p>4. Load the jQuery and TweenMax by adding the following CDN links before closing the body element:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/3.3.1\/jquery.min.js'&gt;&lt;\/script&gt;\r\n&lt;script src='https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/gsap\/2.0.2\/TweenMax.min.js'&gt;&lt;\/script&gt;<\/pre>\n<p>5. Finally, add the following JavaScript function between &lt;script&gt; tag or external JS file to enable menu functionality.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var items = $('.sub-menu .menu-item');\r\n$.each(items, function(){\r\n\tvar self   = $(this);\r\n\tvar m      = self.data('menu');\r\n\tvar menu   = $('.menu .menu-item[data-menu=\"'+m+'\"]');\r\n\tvar p      = menu.offset().top;\r\n\tvar offset = self.offset().top;\r\n\toffset     = offset - p - 20;\r\n\tself.attr('data-position',offset);\r\n});\r\n$('.menu .menu-item').hover(function(){\r\n\t\r\n\tvar m = $(this).data('menu');\r\n\tvar item = $('.sub-menu .menu-item[data-menu=\"'+m+'\"]');\r\n\tvar offset = item.data('position');\r\n\tTweenMax.to('.sub-menu',0.3,{\r\n\t\tscrollTop: offset,\r\n\t\tease: Power2.easeOut\r\n\t})\r\n\r\n},function(){\r\n\t\/\/ Not hovering anymore :(\r\n});\r\n\r\n$('.profile').click(function(event){\r\n\t\r\n})<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Flyout Menu With Scroll Animation on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates a responsive sidebar with an animated sub-menus, providing smooth navigation. Hover over the main menu items, and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10558,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38],"tags":[36],"class_list":["post-10556","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-menu","tag-side-menu"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Flyout Menu with Scroll Animation &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Flyout Menu with Scroll Animation. 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\/flyout-menu-with-scroll-animation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flyout Menu with Scroll Animation &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Flyout Menu with Scroll Animation. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\" \/>\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:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-04T03:30:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.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\/flyout-menu-with-scroll-animation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Flyout Menu with Scroll Animation\",\"datePublished\":\"2024-03-03T10:30:00+00:00\",\"dateModified\":\"2024-03-04T03:30:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\"},\"wordCount\":269,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png\",\"keywords\":[\"Side Menu\"],\"articleSection\":[\"Menu &amp; Nav\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\",\"url\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\",\"name\":\"Flyout Menu with Scroll Animation &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png\",\"datePublished\":\"2024-03-03T10:30:00+00:00\",\"dateModified\":\"2024-03-04T03:30:44+00:00\",\"description\":\"Here is a free code snippet to create a Flyout Menu with Scroll Animation. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png\",\"width\":1280,\"height\":980,\"caption\":\"Flyout Menu with Scroll Animation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#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\":\"Flyout Menu with Scroll Animation\"}]},{\"@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":"Flyout Menu with Scroll Animation &#8212; CodeHim","description":"Here is a free code snippet to create a Flyout Menu with Scroll Animation. 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\/flyout-menu-with-scroll-animation\/","og_locale":"en_US","og_type":"article","og_title":"Flyout Menu with Scroll Animation &#8212; CodeHim","og_description":"Here is a free code snippet to create a Flyout Menu with Scroll Animation. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-03-03T10:30:00+00:00","article_modified_time":"2024-03-04T03:30:44+00:00","og_image":[{"width":1280,"height":980,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.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\/flyout-menu-with-scroll-animation\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Flyout Menu with Scroll Animation","datePublished":"2024-03-03T10:30:00+00:00","dateModified":"2024-03-04T03:30:44+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/"},"wordCount":269,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png","keywords":["Side Menu"],"articleSection":["Menu &amp; Nav"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/","url":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/","name":"Flyout Menu with Scroll Animation &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png","datePublished":"2024-03-03T10:30:00+00:00","dateModified":"2024-03-04T03:30:44+00:00","description":"Here is a free code snippet to create a Flyout Menu with Scroll Animation. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Flyout-Menu-with-Scroll-Animation.png","width":1280,"height":980,"caption":"Flyout Menu with Scroll Animation"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/menu\/flyout-menu-with-scroll-animation\/#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":"Flyout Menu with Scroll Animation"}]},{"@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":1127,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10556","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=10556"}],"version-history":[{"count":1,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10556\/revisions"}],"predecessor-version":[{"id":11278,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10556\/revisions\/11278"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/10558"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=10556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=10556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=10556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}