{"id":41551,"date":"2020-08-12T09:21:39","date_gmt":"2020-08-12T09:21:39","guid":{"rendered":"https:\/\/elementor.com\/blog\/?p=41551"},"modified":"2025-12-03T23:32:40","modified_gmt":"2025-12-03T21:32:40","slug":"shrinking-sticky-header","status":"publish","type":"post","link":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/","title":{"rendered":"How to Create a Shrinking Sticky Header With Elementor"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"41551\" class=\"elementor elementor-41551\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2e53254 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2e53254\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-40bbb67\" data-id=\"40bbb67\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6b96076 elementor-widget elementor-widget-text-editor\" data-id=\"6b96076\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Interested in creating a shrinking header on your WordPress site? That is, a header that &#8220;shrinks&#8221; as a visitor starts scrolling down the page?<\/p><p>Beyond just plain looking cool, this effect gives you more space for the rest of your content, so it&#8217;s worth considering if it would be a useful addition to your website.<\/p><p>In this post, we&#8217;ll show you step-by-step how to use Elementor Pro to create a shrinking header on your WordPress site. While you will need to use some custom <a class=\"wpil_keyword_link\" href=\"https:\/\/elementor.com\/blog\/what-is-css\/\"   title=\"What Is CSS? How to Use it in Web Design (2025)\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"25836\">CSS<\/a> to get the job done, we&#8217;ll walk you through how to modify it according to your needs.<\/p><p>Here&#8217;s an example of what you&#8217;ll be able to create by following this tutorial:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-75e0c19 elementor-widget elementor-widget-video\" data-id=\"75e0c19\" data-element_type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;play_on_mobile&quot;:&quot;yes&quot;,&quot;mute&quot;:&quot;yes&quot;,&quot;loop&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/sites\/9\/2020\/08\/sticky-header-post.mp4\" autoplay=\"\" loop=\"\" muted=\"muted\" playsinline=\"\" controlsList=\"nodownload\"><\/video>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-04dc3a3 elementor-widget elementor-widget-heading\" data-id=\"04dc3a3\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is a Shrinking Header?\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-53205cf elementor-widget elementor-widget-text-editor\" data-id=\"53205cf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>As you saw in the short animation above, a shrinking header does pretty much exactly what the name suggests.<\/p><p>It starts with a regular top header. Then, as a user starts scrolling down the page, the header &#8220;shrinks&#8221; to become a bit smaller &#8211; you can control the degree to which it shrinks and also change how transparent it becomes.<\/p><p>The key thing to note is that the header is still visible even as a user scrolls down the page &#8211; it&#8217;s just smaller. This is different from some other approaches, like completely hiding the header as a user scrolls down and only displaying it when a user scrolls up.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5eac29f elementor-widget elementor-widget-heading\" data-id=\"5eac29f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">What are the Benefits Of a Shrinking Header on Scroll?\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b3e43c9 elementor-widget elementor-widget-text-editor\" data-id=\"b3e43c9\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The biggest benefit of a shrinking header is that you get more space for your main content. It also puts some more emphasis on your main content because you don&#8217;t have your site&#8217;s full header competing for a visitor&#8217;s attention.<\/p><p>At the same time, though, you&#8217;re still able to give users access to your full navigation menu at all times, which you wouldn&#8217;t be able to do if you completely hide the header when a user scrolls down.<\/p><p>In a way, you kind of get the best of both worlds \u2014 more space for your content while still being able to offer your full navigation menu.<\/p><p>Finally, this effect also just generally looks cool and offers some nice eye candy for your visitors as they interact with your website.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d312767 elementor-widget elementor-widget-heading\" data-id=\"d312767\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">What You'll Need to Follow This Tutorial\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5936e27 elementor-widget elementor-widget-text-editor\" data-id=\"5936e27\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>For this tutorial, we&#8217;ll assume that you&#8217;ve already <a href=\"https:\/\/elementor.com\/blog\/website-header-design\/\">created your &#8220;normal&#8221; header<\/a> using <a href=\"https:\/\/elementor.com\/features\/theme-builder\/\" target=\"_blank\" rel=\"noopener\">Elementor Theme Builder<\/a> (which is available in <a href=\"https:\/\/elementor.com\/pro\/\" target=\"_blank\" rel=\"noopener\">Elementor Pro<\/a>).<\/p><p>Basically, you&#8217;ll want to have already created the header that visitors will see when they first land on your page (before they start scrolling down). Then, we&#8217;ll show you how to make it shrink!<\/p><p>We&#8217;ll also assume that your header already has a logo and some navigation items.\u00a0<\/p><p><a href=\"https:\/\/docs.elementor.com\/article\/335-create-headers-using-elementors-theme-builder\" target=\"_blank\" rel=\"noopener\">Check out this help article<\/a> if you&#8217;re not sure how to create your header with Elementor Theme Builder. You can also use one of Elementor Pro&#8217;s pre-built header templates, which is what we&#8217;re going to do for this tutorial. Specifically, we&#8217;re going to use the header from <a href=\"https:\/\/library.elementor.com\/digital-marketing-agency\/\" target=\"_blank\" rel=\"noopener\">the Digital Agency template kit<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6604e52b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6604e52b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4544d615\" data-id=\"4544d615\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1cc012b read-more-link elementor-widget elementor-widget-heading\" data-id=\"1cc012b\" data-element_type=\"widget\" data-gac=\"CTA_Elements\" data-gaa=\"\/blog\/how-to-create-sticky-sidebar-menu\/\" data-gal=\"Position_Text_CTA\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/elementor.com\/blog\/how-to-create-sticky-sidebar-menu\/\">Want To Create Sticky Sidebar Navigation Instead?<\/a><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9ebae65 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9ebae65\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4469edb\" data-id=\"4469edb\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-13af69b elementor-widget elementor-widget-heading\" data-id=\"13af69b\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Create a Shrinking Header With Elementor\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ec2a053 elementor-widget elementor-widget-text-editor\" data-id=\"ec2a053\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Once you have your regular header ready to go, this section will cover how to make it shrink.<\/p><p>To create this effect, you&#8217;ll rely heavily on some custom CSS. However, we&#8217;ll give you the exact code that you need and walk you through customizing it to match your site.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-75af87f elementor-widget elementor-widget-heading\" data-id=\"75af87f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">1. Edit Your Header Template in Elementor\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4a962ba elementor-widget elementor-widget-text-editor\" data-id=\"4a962ba\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To get started, use Elementor Theme Builder to edit the <a class=\"wpil_keyword_link\" href=\"https:\/\/elementor.com\/library\/all-categories\/\"   title=\"Alle categorie\u00ebn\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"25835\">template<\/a> for your header.<\/p><p>In your WordPress dashboard, go to <strong>Templates \u2192 Theme Builder<\/strong> and click <strong>Edit With Elementor<\/strong> for your header template.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b3be0e0 elementor-widget elementor-widget-heading\" data-id=\"b3be0e0\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">2. Perform Some Basic CSS Housekeeping\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-47a0ff0 elementor-widget elementor-widget-text-editor\" data-id=\"47a0ff0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To make sure your header works with the CSS code that you&#8217;ll use in the next sections, you&#8217;ll want to perform a little housekeeping.<\/p><p>First, open the settings for the section that contains your header.<\/p><p>In the <strong>Layout<\/strong> tab, set the <strong>HTML Tag<\/strong> drop-down equal to <strong>header<\/strong>:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-722daaf elementor-widget elementor-widget-image\" data-id=\"722daaf\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"610\" height=\"632\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=610,h=632\/blog\/wp-content\/uploads\/2020\/08\/header-html-tag.png\" class=\"attachment-full size-full wp-image-41555\" alt=\"\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=610\/blog\/wp-content\/uploads\/2020\/08\/header-html-tag.png 610w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=290\/blog\/wp-content\/uploads\/2020\/08\/header-html-tag-290x300.png 290w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-653c2ce elementor-widget elementor-widget-text-editor\" data-id=\"653c2ce\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Also in the <strong>Layout<\/strong> tab, make sure there&#8217;s no<b>\u00a0<\/b>Minimum Height set, set the <b>Vertical Align<\/b> to <b>Middle<\/b>, and then set <b>Columns Gap<\/b> to <b>No Gap<\/b> to avoid unnecessary padding. <strong>Tip<\/strong>: Avoid using top\/bottom padding under Advanced.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b64171a elementor-widget elementor-widget-image\" data-id=\"b64171a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"597\" height=\"1129\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=597,h=1129\/blog\/wp-content\/uploads\/2020\/08\/header-vertical-align-middle.jpg\" class=\"attachment-full size-full wp-image-83121\" alt=\"Vertical Align set to Middle\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-15d9b5f elementor-widget elementor-widget-text-editor\" data-id=\"15d9b5f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Then, go to the <strong>Advanced<\/strong> tab and set the header section&#8217;s <strong>CSS Classes<\/strong> equal to <strong>sticky-header<\/strong>:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ff07590 elementor-widget elementor-widget-image\" data-id=\"ff07590\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"599\" height=\"887\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=599,h=887\/blog\/wp-content\/uploads\/2020\/08\/sticky-header-section.jpg\" class=\"attachment-full size-full wp-image-83127\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a432420 elementor-widget elementor-widget-text-editor\" data-id=\"a432420\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Finally, open the image widget that contains your logo and go to the <strong>Advanced<\/strong> tab. Then, set your logo image&#8217;s <strong>CSS Classes<\/strong> field equal to <strong>logo<\/strong>:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-832ff3f elementor-widget elementor-widget-image\" data-id=\"832ff3f\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"762\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=598,h=762\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-logo.png\" class=\"attachment-full size-full wp-image-41594\" alt=\"\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=598\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-logo.png 598w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=235\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-logo-235x300.png 235w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b082cf0 elementor-widget elementor-widget-heading\" data-id=\"b082cf0\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">3. Set Up Motion Effects to Make Your Header Stick\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c481b58 elementor-widget elementor-widget-text-editor\" data-id=\"c481b58\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To make sure your header sticks to the top as users start scrolling, you can use Elementor&#8217;s <strong>Motion Effects<\/strong> feature.<\/p><p>Open the settings for the section that contains your header. Then, go to the <strong>Advanced<\/strong> tab and open the <strong>Motion Effects<\/strong> settings:<\/p><ul><li>Set the <strong>Sticky<\/strong> drop-down equal to <strong>Top<\/strong>.<\/li><li>Make sure that the <strong>Sticky On<\/strong> box only includes <strong>Desktop <\/strong>&#8211; you&#8217;ll need to delete the other devices.<\/li><li>Set the <strong>Effects Offset<\/strong> equal to <strong>90<\/strong> (to your header&#8217;s height).<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0259853 elementor-widget elementor-widget-image\" data-id=\"0259853\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"909\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=617,h=909\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-motion-effects.png\" class=\"attachment-full size-full wp-image-41598\" alt=\"\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=617\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-motion-effects.png 617w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=204\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-motion-effects-204x300.png 204w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-89d9890 elementor-widget elementor-widget-heading\" data-id=\"89d9890\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">4. Add Custom CSS\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0063370 elementor-widget elementor-widget-text-editor\" data-id=\"0063370\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>With that housekeeping out of the way, you&#8217;re ready to add the custom CSS code.<\/p><p>Here&#8217;s the basic code that you&#8217;ll use \u2014 in the next sections, we&#8217;ll walk you through customizing it to match your needs:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5e4e1da elementor-widget elementor-widget-text-editor\" data-id=\"5e4e1da\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you&#8217;re using Elementor 2.9 and above, you can add this CSS <a href=\"https:\/\/elementor.com\/blog\/introducing-theme-style\/\">via Global Style rules<\/a>:<\/p><ul><li>Click the hamburger menu icon in the top-left corner of the Elementor interface<\/li><li>Choose <strong>Theme Style<\/strong> under the <strong>Global Style<\/strong> section<\/li><li>Select <strong>Custom CSS <\/strong>(once the Theme Style interface has opened &#8211; it will be blue instead of the &#8220;normal&#8221; Elementor red)<\/li><li>Add the CSS code<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-26f5fa4 elementor-widget elementor-widget-code-highlight\" data-id=\"26f5fa4\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* class: .sticky-header\n*\/\nheader.sticky-header {\n\t--header-height: 100px;\n\t--shrink-header-to: 0.6;\n\t--transition: .45s cubic-bezier(.4, 0, .2, 1);\n\tbackground-color: rgba(244, 245, 248, 1);\n\ttransition: background-color var(--transition),\n\t\t\t\tbackdrop-filter var(--transition),\n\t\t\t\tbox-shadow var(--transition);\n}\n\n\/***\n* Sticky header activated\n*\/\nheader.sticky-header.elementor-sticky--effects {\n\tbackground-color: rgba(244, 245, 248, .8);\n\tbox-shadow: 0px 4px 33px 1px rgba(0, 0, 0, .07);\n\t-webkit-backdrop-filter: saturate(180%) blur(20px);\n\tbackdrop-filter: saturate(180%) blur(20px);\n}\nheader.sticky-header > .elementor-container {\n\tmin-height: var(--header-height);\n\ttransition: min-height var(--transition);\n}\nheader.sticky-header.elementor-sticky--effects > .elementor-container {\n\tmin-height: calc( var(--header-height) * var(--shrink-header-to) );\n}\n\n\/***\n* Shorter header on mobile (70px instead of 100px)\n*\/\n@media only screen and (max-width: 767px) {\n\theader.sticky-header {\n\t\t--header-height: 70px;\n\t}\n}\n\n\/***\n* class: .logo\n*\/\nheader.sticky-header .logo img {\n\ttransition: transform var(--transition);\n}\nheader.sticky-header.elementor-sticky--effects .logo img {\n\ttransform: scale(.8);\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e837d3b elementor-widget elementor-widget-image\" data-id=\"e837d3b\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"1696\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=617,h=1696\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-css.png\" class=\"attachment-full size-full wp-image-41599\" alt=\"\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=617\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-css.png 617w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=109\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-css-109x300.png 109w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=373\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-css-373x1024.png 373w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=559\/blog\/wp-content\/uploads\/2020\/08\/shrinking-header-css-559x1536.png 559w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7feb9ae elementor-widget elementor-widget-text-editor\" data-id=\"7feb9ae\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you&#8217;re not using Elementor 2.9 yet, you can open the settings for the header section and go to <strong>Advanced \u2192 Custom CSS<\/strong>.<\/p><p>Also, feel free to ignore the warning icons on the code as of now. It&#8217;ll work fine:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-25f610a elementor-widget elementor-widget-image\" data-id=\"25f610a\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t<figure class=\"wp-caption\">\n\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"628\" height=\"470\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=628,h=470\/blog\/wp-content\/uploads\/2020\/08\/expected-rbrace.png\" class=\"attachment-full size-full wp-image-56918\" alt=\"expected RBRACE at line...\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=628\/blog\/wp-content\/uploads\/2020\/08\/expected-rbrace.png 628w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=300\/blog\/wp-content\/uploads\/2020\/08\/expected-rbrace-300x225.png 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/>\t\t\t\t\t\t\t\t\t\t\t<figcaption class=\"widget-image-caption wp-caption-text\">Ignore the \"Expected RBRACE at line...\" warning icons<\/figcaption>\n\t\t\t\t\t\t\t\t\t\t<\/figure>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-acf0ec1 elementor-widget elementor-widget-text-editor\" data-id=\"acf0ec1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If there is a Menu Cart Widget in the Header, add this custom CSS:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0d0bf1a elementor-widget elementor-widget-code-highlight\" data-id=\"0d0bf1a\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>.elementor-menu-cart__container {\n    min-height: 100vh;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cc06caa elementor-widget elementor-widget-heading\" data-id=\"cc06caa\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">5. Customize CSS\n<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0ac2e17 elementor-widget elementor-widget-text-editor\" data-id=\"0ac2e17\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Now, let&#8217;s go through how to customize this CSS to match your needs. While you can edit the CSS directly in the Elementor interface, we&#8217;d recommend using a proper code editor such as <a href=\"https:\/\/code.visualstudio.com\" target=\"_blank\" rel=\"noopener\">Visual Studio Code<\/a> or <a href=\"https:\/\/atom.io\" target=\"_blank\" rel=\"noopener\">Atom<\/a>. Both editors are free and work on Windows, macOS, and Linux.<\/p><p>We&#8217;ll be using CSS Custom Properties (or CSS Variables). You can use these to customize the effects of your shrinking header. Once you edit the custom property one time, it will automatically update the entire CSS code to match.<\/p><p>In total, there are five variables that you can customize. You also don&#8217;t have to customize them \u2014 it&#8217;s totally fine to leave them as the defaults if you already like how things work!<\/p><p>Here are the five CSS variables, as well as the default values in our example code:<\/p><ul><li><pre>--header-height: 90px;<\/pre><\/li><li><pre>--opacity: 0.90;<\/pre><\/li><li><pre>--shrink-header-to: 0.80;<\/pre><\/li><li><pre>--sticky-background-color: #0e41e5;<\/pre><\/li><li><pre>--transition: 300ms ease-in-out;<\/pre><\/li><\/ul><p>You&#8217;ll see these listed at the top of our example code &#8211; the custom properties are the items that come after the double dash &#8220;&#8211;&#8220;. All you need to do is update the value that comes after the colon and before the semi-colon.<\/p><p>For example, if you want to change the header height to 100px, here&#8217;s how it would look before and after:<\/p><ul><li><strong>Before<\/strong>:<pre>--header-height: 90px;<\/pre><\/li><\/ul><ul><li><strong>After<\/strong>:<pre>--header-height: 100px;<\/pre><\/li><\/ul><p>Let&#8217;s go through your options for the five variables:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7da12ef elementor-widget elementor-widget-heading\" data-id=\"7da12ef\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Sticky Background Color (--sticky-background-color)\n<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45c4d33 elementor-widget elementor-widget-text-editor\" data-id=\"45c4d33\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Values accepted<\/strong>: Color names (i.e. <em>black<\/em>) or hex values (i.e. <em>#000000<\/em>).<\/p><p>The Sticky Background Color property controls the background color of the &#8220;shrunken&#8221; header that appears as visitors scroll down. You can customize it to use any color that you want \u2014 it doesn&#8217;t need to match the original color of your header if you don&#8217;t want it to.<\/p><p>For example, in the Digital Agency template, our header background initially starts with a gradient. However, as visitors scroll down and the header shrinks, it changes to use a solid blue background (you can see this in the example video from the beginning).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b35ce3e elementor-widget elementor-widget-heading\" data-id=\"b35ce3e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Header Height (--header-height)\n<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e42dad0 elementor-widget elementor-widget-text-editor\" data-id=\"e42dad0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Header Height property dictates the height of your header &#8211; it needs to exactly match the height of your header section in Elementor&#8217;s settings. Earlier in the tutorial, we had you set this to 90px, which is a good starting value.<\/p><p>You can change the height if you want, just make sure to change the height for <strong>both <\/strong>the CSS property and the header section&#8217;s settings.<\/p><p>However, we recommend not exceeding 100px for the header height as larger headers can cause problems with the shrink effect.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a509052 elementor-widget elementor-widget-heading\" data-id=\"a509052\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Opacity (--opacity)\n<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1074c0a elementor-widget elementor-widget-text-editor\" data-id=\"1074c0a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Values accepted<\/strong>: 0 to 1.<\/p><p>The Opacity property controls the degree to which your shrinking header is transparent:<\/p><ul><li>0 &#8211; the header will be completely transparent<\/li><li>1 &#8211; the header will be opaque (no transparency)<\/li><\/ul><p>In our example code, we&#8217;ve set the opacity equal to <strong>0.9<\/strong>, which makes it almost completely opaque. You can adjust this value to meet your needs. To make it more transparent, just lower the number towards 0.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9968792 elementor-widget elementor-widget-heading\" data-id=\"9968792\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Shrink Header To (--shrink-header-to)\n<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7e49db0 elementor-widget elementor-widget-text-editor\" data-id=\"7e49db0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Values accepted<\/strong>: 0 to 1.<\/p><p>The Shrink Me property controls the degree to which your header and logo shrink when a visitor starts scrolling down. For example, with the default value of <strong>0.80<\/strong>, your header and logo will shrink to 80% of their initial size.<\/p><p>While you can adjust this value, <strong>we recommend leaving this value as the default<\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c4d09bb elementor-widget elementor-widget-heading\" data-id=\"c4d09bb\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Transition (--transition)\n<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bbef2e0 elementor-widget elementor-widget-text-editor\" data-id=\"bbef2e0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Values accepted<\/strong>: 100ms to 1000ms.<\/p><p>The Transition property controls how long it takes for the header to shrink from its original size to the &#8220;shrunken&#8221; size.<\/p><p>As with the Shrink Me property, <strong>we recommend leaving this as the default<\/strong>, though you can edit it if desired.<\/p><h4>Some Other Technical Notes<\/h4><p>In addition to the five CSS custom properties that we detailed above, here are a few other technical notes.<\/p><p>First off, we&#8217;re using another CSS property called <strong>backdrop-filter<\/strong> that creates a cool glass-like effect. You can also customize this if you want. Or, if you don&#8217;t like the effect, you can completely remove this property.<\/p><p>Second, the navigation menu in our example uses an <strong>underline<\/strong> pointer effect with <strong>Drop Out<\/strong> animation. The CSS code that we used takes care of this as well. If you know your way around CSS, you can also customize these to meet your needs.<\/p><p>And that&#8217;s it \u2014 you just created a shrinking sticky header with Elementor!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-80c94bf elementor-widget elementor-widget-heading\" data-id=\"80c94bf\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Help! The CSS Isn't Working \u2014 What's Wrong?<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7f6df08 elementor-widget elementor-widget-text-editor\" data-id=\"7f6df08\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you&#8217;re having issues with the CSS from our tutorial, here are a few troubleshooting suggestions.<\/p><p>First off, the header won&#8217;t shrink if its content is too big. For example, if the logo is too tall, the header won&#8217;t be able to shrink beyond the height of the logo.<\/p><p>Second, while this code should work for all WordPress themes, your specific theme might be causing issues. For reference, we&#8217;re using the free Hello theme for our example.<\/p><p>You can try <a href=\"https:\/\/elementor.com\/hello-theme\/\" target=\"_blank\" rel=\"noopener\">switching to the Hello theme<\/a> to see if your shrinking header works with Hello. If it does, that probably means there&#8217;s an issue with your theme \u2014 you can try reaching out to your theme&#8217;s developer for help.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b0ed2f elementor-widget elementor-widget-heading\" data-id=\"6b0ed2f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Create Your Shrinking Header Today\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-78e09b7 elementor-widget elementor-widget-text-editor\" data-id=\"78e09b7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A shrinking header provides an eye-catching way to give your main content more space while still offering a navigation menu.<\/p><p>Give it a try today, and don&#8217;t be afraid to customize the CSS to meet your needs, especially the background color.<\/p><p>If you haven&#8217;t already, <a href=\"https:\/\/elementor.com\/pricing\/\" target=\"_blank\" rel=\"noopener\">purchase Elementor Pro<\/a> so that you can create your own header templates and use this neat effect.<\/p><p>Still have any questions about creating a shrinking header? Ask us in the comments! And if you&#8217;ve already used this effect on your site, share the link in the comments so that we can check it out.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bca23dc elementor-widget elementor-widget-heading\" data-id=\"bca23dc\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Edit: Updated Shrinking Sticky Header CSS with support for the Container<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1ab58bd elementor-widget elementor-widget-text-editor\" data-id=\"1ab58bd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Following is an updated code for the shrinking sticky header code to address some questions I got from the comments, and also to take into account new widgets such as the <a href=\"https:\/\/elementor.com\/help\/menu-cart-widget-pro\/\">Menu Cart widget<\/a> that was added in <a href=\"https:\/\/elementor.com\/blog\/introducing-elementor-pro-3-4\/\">Elementor Pro 3.4<\/a>.<\/p><p>The previous code still works fine, but the updated code should be simpler to implement.<\/p><p>Also added is a version of the code that supports Elementor&#8217;s new container experiment that harnesses flexbox for the header layout.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9f2f3c9 elementor-widget elementor-widget-heading\" data-id=\"9f2f3c9\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">What\u2019s New<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6f6a449 elementor-widget elementor-widget-text-editor\" data-id=\"6f6a449\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Code for the new container experiment<\/li><li>Set your own background color using Elementor if you don&#8217;t need the background color to change on scroll.<\/li><li>I&#8217;ve dropped the use of the opacity variable so now it&#8217;s easier now to set a header background color on scroll.<\/li><li>Optional: Shadow on scroll<\/li><li>Optional: Shrinking Menu Cart widget<\/li><li>Optional: Shorter header on mobile<\/li><li>Optional: Change text color on scroll<\/li><li>Optional: Hide Widgets on Scroll<\/li><li>Optional: Transparent Widgets on Scroll<\/li><li>Optional: Change menu font size on Scroll<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d3574cd elementor-widget elementor-widget-heading\" data-id=\"d3574cd\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Changing Background Color on Scroll is Now Optional<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8db16f7 elementor-widget elementor-widget-text-editor\" data-id=\"8db16f7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>You can now set your own background color in Elementor. This means the color won&#8217;t change on scroll, but some people just need the shrinking part. If you set your color using the Elementor website builder it will ignore the color part of the code.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a0773a0 elementor-widget elementor-widget-heading\" data-id=\"a0773a0\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Transparency<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9846b1c elementor-widget elementor-widget-text-editor\" data-id=\"9846b1c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In the code I\u2019ve used the background color with an RGBa value instead of hex. This is optional as well. I used RGBa as it\u2019s a way to display color with an alpha channel, which set opacity between 0 (transparent) and 1 (opaque). You can search for \u201cHEX to RGBa\u201d and convert your color to RGBa format with the opacity set from 0 to 1.<\/p><p>Please note that I use opaque color for the header and it\u2019s updated to a value of 0.8 to add some transparency.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4564b99 elementor-widget elementor-widget-heading\" data-id=\"4564b99\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Shadow on Scroll<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b151c22 elementor-widget elementor-widget-text-editor\" data-id=\"b151c22\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <em>box-shadow<\/em> line is optional. It adds a shadow under the header on scroll. You can either delete the line or change the value to <em>none<\/em>.<\/p><p>The <em>backdrop-filter<\/em> lines are also optional. These add a \u201cglass-like\u201d effect on scroll. The &#8220;glass&#8221; effect works only if you add opacity with an RGBa color value to line 16. If needed, you can convert your preferred color to an RGBa value with some transparency (0.80 in our example).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c965cd5 elementor-widget elementor-widget-heading\" data-id=\"c965cd5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Updated CSS for the Shrinking Sticky Header, no container edition<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ce0c0a3 elementor-widget elementor-widget-code-highlight\" data-id=\"ce0c0a3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Shrinking Sticky header, no container edition\n* class: .sticky-header\n* Uses the built-in .elementor-container class for shrinking the header in non-container installs\n*\/\nheader.sticky-header {\n\t--header-height: 100px; \/* Set your own header height *\/\n\t--shrink-header-to: 0.6; \/* Shrinks to 60%, values: 0.1 to 1 *\/\n\t--transition-timing: .45s cubic-bezier(.4, 0, .2, 1); \/* values: .1s to 0.5s (or more), replace \"cubic-bezier(.4, 0, .2, 1)\" with \"ease\" if you need a simpler transition *\/\n\tbackground-color: rgba(244, 245, 248, 1); \/* Set your own background color *\/\n\ttransition: background-color var(--transition-timing),\n\t\t\t\tbackdrop-filter var(--transition-timing),\n\t\t\t\tbox-shadow var(--transition-timing);\n}\nheader.sticky-header.elementor-sticky--effects {\n\tbackground-color: rgba(244, 245, 248, .8); \/* Set your own background color on scroll *\/\n\tbox-shadow: 0px 4px 33px 1px rgba(0, 0, 0, .07); \/* Delete this line if you don't want shadow on scroll *\/\n\t-webkit-backdrop-filter: saturate(180%) blur(20px); \/* Delete this line if you don't use transparency on scroll *\/\n\tbackdrop-filter: saturate(180%) blur(20px); \/* Delete this line if you don't use transparency on scroll *\/\n}\nheader.sticky-header > .elementor-container {\n\tmin-height: var(--header-height);\n\ttransition: min-height var(--transition-timing);\n}\nheader.sticky-header.elementor-sticky--effects > .elementor-container {\n\tmin-height: calc( var(--header-height) * var(--shrink-header-to) );\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8647379 elementor-widget elementor-widget-heading\" data-id=\"8647379\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">CSS for the Shrinking Sticky Header, new container edition<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ce15a9c elementor-widget elementor-widget-text-editor\" data-id=\"ce15a9c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Elementor container is still an experiment at this stage. Use the following code instead, <strong>but only if you&#8217;re using the Container<\/strong>. Please note that there no are columns in the container, and the widgets are inline by default.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-03ce886 elementor-widget elementor-widget-image\" data-id=\"03ce886\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"2816\" height=\"662\" src=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=2816,h=662\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout.png\" class=\"attachment-full size-full wp-image-82912\" alt=\"Elementor Container layout\" srcset=\"https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=2816\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout.png 2816w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=300\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout-300x71.png 300w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=1024\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout-1024x241.png 1024w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=768\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout-768x181.png 768w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=1536\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout-1536x361.png 1536w, https:\/\/elementor.com\/cdn-cgi\/image\/f=auto,w=2048\/blog\/wp-content\/uploads\/2020\/08\/Elementor-Container-layout-2048x481.png 2048w\" sizes=\"(max-width: 2816px) 100vw, 2816px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0f7e52e elementor-widget elementor-widget-text-editor\" data-id=\"0f7e52e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>I used these settings for the container:<\/h4><ul><li><strong>Direction:<\/strong> Row<\/li><li><strong>Align items:<\/strong> Center<\/li><li><strong>Justify Content:<\/strong> Space Evenly<\/li><li><strong>Elements Gap:<\/strong> 36px<\/li><li><strong>Wrap:<\/strong> No Wrap<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef52d4e elementor-widget elementor-widget-video\" data-id=\"ef52d4e\" data-element_type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;autoplay&quot;:&quot;yes&quot;,&quot;play_on_mobile&quot;:&quot;yes&quot;,&quot;mute&quot;:&quot;yes&quot;,&quot;loop&quot;:&quot;yes&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"https:\/\/elementor.com\/marketing\/wp-content\/uploads\/sites\/9\/2020\/08\/Elementor-Container-scrolling.mp4\" autoplay=\"\" loop=\"\" controls=\"\" muted=\"muted\" playsinline=\"\" controlsList=\"nodownload\"><\/video>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-297e0f3 elementor-widget elementor-widget-code-highlight\" data-id=\"297e0f3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Shrinking Sticky header, Elementor Container edition\n* class: .sticky-header\n* This will only work with the Elementor container section\n* the header uses additional 3 classes to gain higher CSS specificity and to avoid adding !important\n*\/\nheader.sticky-header.e-container.elementor-element {\n\t--header-height: 100px; \/* Set your own header height *\/\n\t--shrink-header-to: 0.6; \/* Shrinks to 60%, values: 0.1 to 1 *\/\n\t--transition-timing: .45s cubic-bezier(.4, 0, .2, 1); \/* values: .1s to 0.5s (or more), replace \"cubic-bezier(.4, 0, .2, 1)\" with \"ease\" if you need a simpler transition *\/\n\tbackground-color: rgba(244, 245, 248, 1); \/* Set your own background color *\/\n\t--min-height: var(--header-height);\n\t--transition: background-color var(--transition-timing),\n\t\t\t\t\tbackdrop-filter var(--transition-timing),\n\t\t\t\t\tbox-shadow var(--transition-timing),\n\t\t\t\t\tmin-height var(--transition-timing);\n}\nheader.sticky-header.e-container.elementor-element.elementor-sticky--effects {\n\tbackground-color: rgba(244, 245, 248, .8); \/* Set your own background color on scroll *\/\n\tbox-shadow: 0px 4px 33px 1px rgba(0, 0, 0, .07); \/* Delete this line if you don't want shadow on scroll *\/\n\t-webkit-backdrop-filter: saturate(180%) blur(20px); \/* Delete this line if you don't use transparency on scroll *\/\n\tbackdrop-filter: saturate(180%) blur(20px); \/* Delete this line if you don't use transparency on scroll *\/\n\t--min-height: calc( var(--header-height) * var(--shrink-header-to) );\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d08065f elementor-widget elementor-widget-heading\" data-id=\"d08065f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Shrink logo on Scroll<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ad2d222 elementor-widget elementor-widget-text-editor\" data-id=\"ad2d222\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\tAdd the class <b>logo<\/b> to your logo for it to shrink on scroll. This code will work on both container and non-container layouts.\n<h4>This code uses 2 variables:<\/h4>\n<ul>\n \t<li>\n<pre><strong>--logo-height: 32px;<\/strong><\/pre>\nReplace 32px with the logo height <em>before<\/em> being shrunk on scroll\n<\/li>\n \t<li>\n<pre><b>--logo-shrink-to: 0.80; <\/pre>\n<\/b>The percentage (%) the logo shrinks to. Replace 0.80 with the value that works best for you from 0.10 to 1.00\n<\/li>\n<\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e7ed6ff elementor-widget elementor-widget-code-highlight\" data-id=\"e7ed6ff\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* class: .logo\n* Add the class \"logo\" to your logo to scale your logo to 80% on scroll\n*\/\nheader.sticky-header .logo img,\nheader.sticky-header .logo.elementor-widget-theme-site-logo img,\nheader.sticky-header .logo .elementor-icon svg {\n\t--logo-height: 32px; \/* This should be the original logo height _before_ being shrunk *\/\n\t--logo-shrink-to: 0.80; \/* Shrinks logo to 80%, values: 0.10 to 1.00, where 1.00, as in 100%, won't shrink the logo *\/\n\theight: var(--logo-height);\n\ttransition: height var(--transition-timing);\n}\nheader.sticky-header.elementor-sticky--effects .logo img,\nheader.sticky-header.elementor-sticky--effects .logo.elementor-widget-theme-site-logo img,\nheader.sticky-header.elementor-sticky--effects .logo .elementor-icon svg {\n\theight: calc(var(--logo-height) * var(--logo-shrink-to));\n}\nheader.sticky-header .logo .elementor-icon svg {\n\twidth: auto;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-519cf2c elementor-widget elementor-widget-heading\" data-id=\"519cf2c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Shorter Header Height on Mobile<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-662c24d elementor-widget elementor-widget-text-editor\" data-id=\"662c24d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Add this code in addition so that the height of the header on mobile will be 70px instead of 100px.<\/p><p>This code will work on both container and non-container layouts.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0f1c73d elementor-widget elementor-widget-code-highlight\" data-id=\"0f1c73d\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Shorter header on mobile\n*\/\n@media only screen and (max-width: 767px) {\n\theader.sticky-header,\n\theader.sticky-header.e-container.elementor-element {\n\t\t--header-height: 70px;\n\t}\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b260dd6 elementor-widget elementor-widget-heading\" data-id=\"b260dd6\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Shrink the Menu Cart Widget<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-811bea7 elementor-widget elementor-widget-text-editor\" data-id=\"811bea7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\tYou may want to tweak the font size to suit your needs.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a863f3f elementor-widget elementor-widget-code-highlight\" data-id=\"a863f3f\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Shrink Menu Cart on scroll\n*\/\nheader.sticky-header .elementor-menu-cart__toggle .elementor-button {\n\ttransition: padding var(--transition-timing),\n\t\t\t\tfont-size var(--transition-timing);\n}\nheader.sticky-header.elementor-sticky--effects .elementor-menu-cart__toggle .elementor-button {\n\tpadding: var(--toggle-icon-padding, 8px 16px);\n\tfont-size: 12px; \/* Set your own font size on scroll *\/\n}\nheader.sticky-header .elementor-menu-cart__main {\n\tmin-height: 100vh;\n}\nheader.sticky-header .elementor-menu-cart__container {\n\toverflow: visible;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1558930 elementor-widget elementor-widget-heading\" data-id=\"1558930\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Change Nav Menu Text Color on Scroll<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7faa199 elementor-widget elementor-widget-text-editor\" data-id=\"7faa199\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This will change the color of the nav menu on scroll. In this example, I&#8217;ve used black, but you use your own color to suit your needs. Also, note I&#8217;ve added a mouse hover color for the nav menu on scroll.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-835b1fb elementor-widget elementor-widget-code-highlight\" data-id=\"835b1fb\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Change nav menu text color on scroll\n*\/\nheader.sticky-header.elementor-sticky--effects .elementor-item {\n\tcolor: black !important; \/* Set your own nav menu font color on scroll *\/\n}\nheader.sticky-header.elementor-sticky--effects .elementor-item:hover {\n\tcolor: pink !important; \/* This will be the mouse hover color for the menu on scroll *\/\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-186a31f elementor-widget elementor-widget-heading\" data-id=\"186a31f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Hide Widgets on Scroll<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8ed282 elementor-widget elementor-widget-text-editor\" data-id=\"a8ed282\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>With this code, every widget that has the class <em><strong>hide-me<\/strong><\/em> will be hidden on scroll.<\/p><p><strong>Note<\/strong>: This will remove the widgets with <strong>no animation<\/strong>, and the display property has no animation capabilities, unlike opacity, for example.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c163162 elementor-widget elementor-widget-code-highlight\" data-id=\"c163162\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Hide Widgets on Scroll\n* class: .hide-me\n* Usage: Add class \"hide-me\" to any widget you wish to hide on scroll\n*\/\nheader.sticky-header.elementor-sticky\u2013effects .hide-me {\n  display: none;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d718380 elementor-widget elementor-widget-heading\" data-id=\"d718380\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Hide Widgets on Scroll with Transparency<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-957fd77 elementor-widget elementor-widget-text-editor\" data-id=\"957fd77\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Use the class <strong><em>transparent-on-scroll<\/em><\/strong> on any widgets that you want to become transparent on scroll.<\/p><p><strong>Note<\/strong>: Those widgets will still take space, as they are only transparent.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-55fd6cf elementor-widget elementor-widget-code-highlight\" data-id=\"55fd6cf\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Transparent Widgets on Scroll\n* class: .transparent-on-scroll\n* Usage: Add class \"hide-me\" to any widget you wish to become transparent on scroll\n*\/\nheader.sticky-header .transparent-on-scroll {\n  opacity: 1;\n  transition: opacity var(--transition-timing);\n}\nheader.sticky-header.elementor-sticky--effects .transparent-on-scroll {\n  opacity: 0;\n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f89d7a2 elementor-widget elementor-widget-heading\" data-id=\"f89d7a2\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Optional: Change font size on scroll<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b0ae64e elementor-widget elementor-widget-text-editor\" data-id=\"b0ae64e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Make sure to add your own value for the font size.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-152555f elementor-widget elementor-widget-code-highlight\" data-id=\"152555f\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-css\">\n\t\t\t\t\t<xmp>\/***\n* Optional: Change menu font size on Scroll\n*\/\nheader.sticky-header.elementor-sticky--effects .elementor-nav-menu .elementor-item {\n  font-size: 13px !important;\n}\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9daf67e elementor-widget elementor-widget-text-editor\" data-id=\"9daf67e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>And that&#8217;s it!<br \/>Send me links in the comments with your sticky shrinking headers.<br \/>Best,<br \/>Roy.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In a new column, our employees share their knowledge, practices, and insights with you. This week, our Elementor expert explains how to create a sticky header with Elementor.<\/p>\n","protected":false},"author":507054,"featured_media":41563,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[44,167,28],"tags":[79],"marketing_persona":[47,51],"marketing_intent":[49],"class_list":["post-41551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elementor","category-elementor-team-writes","category-tips-tricks","tag-build"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create a Shrinking Sticky Header With Elementor<\/title>\n<meta name=\"description\" content=\"Learn how to create a sticky header in WordPress using Elementor. Also, we explain how to use the shrinking effect to improve UX\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Shrinking Sticky Header With Elementor\" \/>\n<meta property=\"og:description\" content=\"In a new column, our employees share their knowledge, practices, and insights with you. This week, our Elementor expert explains how to create a shrinking sticky header with Elementor.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/elemntor\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/roy.eyal\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-12T09:21:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-03T21:32:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1201\" \/>\n\t<meta property=\"og:image:height\" content=\"629\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Roy Eyal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Create a Shrinking Sticky Header With Elementor\" \/>\n<meta name=\"twitter:description\" content=\"In a new column, our employees share their knowledge, practices, and insights with you. This week, our Elementor expert explains how to create a shrinking sticky header with Elementor.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\" \/>\n<meta name=\"twitter:creator\" content=\"@royeyal\" \/>\n<meta name=\"twitter:site\" content=\"@elemntor\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Roy Eyal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\"},\"author\":{\"name\":\"Roy Eyal\",\"@id\":\"https:\/\/elementor.com\/blog\/#\/schema\/person\/2ba1a8835804a94218c0bd2e57078052\"},\"headline\":\"How to Create a Shrinking Sticky Header With Elementor\",\"datePublished\":\"2020-08-12T09:21:39+00:00\",\"dateModified\":\"2025-12-03T21:32:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\"},\"wordCount\":2743,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/elementor.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\",\"keywords\":[\"Build\"],\"articleSection\":[\"Elementor\",\"Elementor Team Writes\",\"Tips &amp; Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\",\"url\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\",\"name\":\"How to Create a Shrinking Sticky Header With Elementor\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\",\"datePublished\":\"2020-08-12T09:21:39+00:00\",\"dateModified\":\"2025-12-03T21:32:40+00:00\",\"description\":\"Learn how to create a sticky header in WordPress using Elementor. Also, we explain how to use the shrinking effect to improve UX\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage\",\"url\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\",\"contentUrl\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png\",\"width\":1201,\"height\":629},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/elementor.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elementor\",\"item\":\"https:\/\/elementor.com\/blog\/category\/elementor\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Create a Shrinking Sticky Header With Elementor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/blog\/#website\",\"url\":\"https:\/\/elementor.com\/blog\/\",\"name\":\"Elementor\",\"description\":\"Website Builder for WordPress\",\"publisher\":{\"@id\":\"https:\/\/elementor.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/elementor.com\/blog\/#organization\",\"name\":\"Elementor\",\"url\":\"https:\/\/elementor.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2025\/06\/images.png\",\"contentUrl\":\"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2025\/06\/images.png\",\"width\":225,\"height\":225,\"caption\":\"Elementor\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/elemntor\/\",\"https:\/\/x.com\/elemntor\",\"https:\/\/www.instagram.com\/elementor\/\",\"https:\/\/www.youtube.com\/channel\/UCt9kG_EDX8zwGSC1-ycJJVA?sub_confirmation=1\",\"https:\/\/en.wikipedia.org\/wiki\/Elementor\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/blog\/#\/schema\/person\/2ba1a8835804a94218c0bd2e57078052\",\"name\":\"Roy Eyal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0b1e740e51c9b2a284e78aba985295df558287fbc08a4481f7c46213b724582c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0b1e740e51c9b2a284e78aba985295df558287fbc08a4481f7c46213b724582c?s=96&d=mm&r=g\",\"caption\":\"Roy Eyal\"},\"description\":\"An expert Elementorist at Elementor and a WordPress web developer that loves design and working with designers. Dev by day, bass player at night.\",\"sameAs\":[\"https:\/\/elementor.com\/author\/roy-eyal\/\",\"https:\/\/www.facebook.com\/roy.eyal\/\",\"https:\/\/www.instagram.com\/royeyal\/\",\"https:\/\/www.linkedin.com\/in\/royeyalcom\/\",\"https:\/\/x.com\/royeyal\",\"https:\/\/www.youtube.com\/royeyal\"],\"url\":\"https:\/\/elementor.com\/blog\/author\/roy-eyal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Shrinking Sticky Header With Elementor","description":"Learn how to create a sticky header in WordPress using Elementor. Also, we explain how to use the shrinking effect to improve UX","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:\/\/elementor.com\/blog\/shrinking-sticky-header\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Shrinking Sticky Header With Elementor","og_description":"In a new column, our employees share their knowledge, practices, and insights with you. This week, our Elementor expert explains how to create a shrinking sticky header with Elementor.","og_url":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/","og_site_name":"Blog","article_publisher":"https:\/\/www.facebook.com\/elemntor\/","article_author":"https:\/\/www.facebook.com\/roy.eyal\/","article_published_time":"2020-08-12T09:21:39+00:00","article_modified_time":"2025-12-03T21:32:40+00:00","og_image":[{"width":1201,"height":629,"url":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","type":"image\/png"}],"author":"Roy Eyal","twitter_card":"summary_large_image","twitter_title":"How to Create a Shrinking Sticky Header With Elementor","twitter_description":"In a new column, our employees share their knowledge, practices, and insights with you. This week, our Elementor expert explains how to create a shrinking sticky header with Elementor.","twitter_image":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","twitter_creator":"@royeyal","twitter_site":"@elemntor","twitter_misc":{"Written by":"Roy Eyal","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/"},"author":{"name":"Roy Eyal","@id":"https:\/\/elementor.com\/blog\/#\/schema\/person\/2ba1a8835804a94218c0bd2e57078052"},"headline":"How to Create a Shrinking Sticky Header With Elementor","datePublished":"2020-08-12T09:21:39+00:00","dateModified":"2025-12-03T21:32:40+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/"},"wordCount":2743,"commentCount":0,"publisher":{"@id":"https:\/\/elementor.com\/blog\/#organization"},"image":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","keywords":["Build"],"articleSection":["Elementor","Elementor Team Writes","Tips &amp; Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/","url":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/","name":"How to Create a Shrinking Sticky Header With Elementor","isPartOf":{"@id":"https:\/\/elementor.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","datePublished":"2020-08-12T09:21:39+00:00","dateModified":"2025-12-03T21:32:40+00:00","description":"Learn how to create a sticky header in WordPress using Elementor. Also, we explain how to use the shrinking effect to improve UX","breadcrumb":{"@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/blog\/shrinking-sticky-header\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#primaryimage","url":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","contentUrl":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2020\/08\/Create-a-Shrinking-Sticky-Header_external.png","width":1201,"height":629},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/blog\/shrinking-sticky-header\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/elementor.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Elementor","item":"https:\/\/elementor.com\/blog\/category\/elementor\/"},{"@type":"ListItem","position":3,"name":"How to Create a Shrinking Sticky Header With Elementor"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/blog\/#website","url":"https:\/\/elementor.com\/blog\/","name":"Elementor","description":"Website Builder for WordPress","publisher":{"@id":"https:\/\/elementor.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/blog\/#organization","name":"Elementor","url":"https:\/\/elementor.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2025\/06\/images.png","contentUrl":"https:\/\/elementor.com\/blog\/wp-content\/uploads\/2025\/06\/images.png","width":225,"height":225,"caption":"Elementor"},"image":{"@id":"https:\/\/elementor.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/elemntor\/","https:\/\/x.com\/elemntor","https:\/\/www.instagram.com\/elementor\/","https:\/\/www.youtube.com\/channel\/UCt9kG_EDX8zwGSC1-ycJJVA?sub_confirmation=1","https:\/\/en.wikipedia.org\/wiki\/Elementor"]},{"@type":"Person","@id":"https:\/\/elementor.com\/blog\/#\/schema\/person\/2ba1a8835804a94218c0bd2e57078052","name":"Roy Eyal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0b1e740e51c9b2a284e78aba985295df558287fbc08a4481f7c46213b724582c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0b1e740e51c9b2a284e78aba985295df558287fbc08a4481f7c46213b724582c?s=96&d=mm&r=g","caption":"Roy Eyal"},"description":"An expert Elementorist at Elementor and a WordPress web developer that loves design and working with designers. Dev by day, bass player at night.","sameAs":["https:\/\/elementor.com\/author\/roy-eyal\/","https:\/\/www.facebook.com\/roy.eyal\/","https:\/\/www.instagram.com\/royeyal\/","https:\/\/www.linkedin.com\/in\/royeyalcom\/","https:\/\/x.com\/royeyal","https:\/\/www.youtube.com\/royeyal"],"url":"https:\/\/elementor.com\/blog\/author\/roy-eyal\/"}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/posts\/41551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/users\/507054"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/comments?post=41551"}],"version-history":[{"count":6,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/posts\/41551\/revisions"}],"predecessor-version":[{"id":146502,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/posts\/41551\/revisions\/146502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/media\/41563"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/media?parent=41551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/categories?post=41551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/tags?post=41551"},{"taxonomy":"marketing_persona","embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/marketing_persona?post=41551"},{"taxonomy":"marketing_intent","embeddable":true,"href":"https:\/\/elementor.com\/blog\/wp-json\/wp\/v2\/marketing_intent?post=41551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}