<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>jQuery &#8211; Sticky header that shrinks when scrolling down &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/feed/</link>
		<description></description>
		<lastBuildDate>Sun, 12 Oct 2025 02:02:32 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180033</guid>
					<title><![CDATA[jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180033</link>
					<pubDate>Fri, 09 Jan 2015 22:13:02 +0000</pubDate>
					<dc:creator>Angus M</dc:creator>

					<description>
						<![CDATA[
						<p>I’m trying to create a fixed header that resizes the size of the logo and the hight of the navbar when the visitor scrolls. I’ve attempted to implement the code found <a href="http://stackoverflow.com/questions/16442016/jquery-sticky-header-that-shrinks-when-scrolling-down" rel="nofollow">here</a>. I tried putting the code in the custom javascript section in customize replacing &#8220;#header_nav&#8221; with &#8220;.x-navbar&#8221; using a class selector instead of an id selector but it did not work. </p>
<p>i had some success in changing the hight of the nabber by changing the css for x-navbar x-navbar-fixed-top but it does not look that clean. any ideas?</p>
<p>thanks<br />
<a href="http://visualteachingtechnologies.com/" rel="nofollow">visualteachingtechnologies.com/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180434</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180434</link>
					<pubDate>Sat, 10 Jan 2015 19:53:20 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in.</p>
<p>The code will not work, the one that giving height from your navbar are your menu items.</p>
<p>Add this css at your customizer&#8217;s custom css,</p>
<pre><code>.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand, .x-navbar .x-navbar-inner {
    -webkit-transition: height 2s, padding-top 2s;
    transition: height 2s, padding-top 2s;
}

.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand {
    -webkit-transition: min-height 2s;
    transition: min-height 2s;
}
.x-navbar.x-navbar-fixed-top .desktop .x-nav &gt; li &gt; a {
height: 60px;
padding-top: 25px;
}

.x-navbar.x-navbar-fixed-top .x-brand {
width: 100px;
}

.x-navbar.x-navbar-fixed-top .x-navbar-inner {
min-height: 60px;
}</code></pre>
<p>Then add this code at your customizer&#8217;s custom javascript.</p>
<pre><code>jQuery(function($) {

$(window).scroll(function(){

if($(this).scrollTop()&lt;=0) {
$(&#039;.x-navbar&#039;).removeClass(&#039;x-navbar-fixed-top x-container-fluid max width&#039;);
}

});

});</code></pre>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180450</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180450</link>
					<pubDate>Sat, 10 Jan 2015 20:27:30 +0000</pubDate>
					<dc:creator>Angus M</dc:creator>

					<description>
						<![CDATA[
						<p>Very cool! this is exactly what i wanted! thank you</p>
<p>Is there a way to make a smoother transition from the top menu to the scroll menu?<br />
also i would like for the scroll menu to have a different logo image of just the globe.<br />
     here is the path to the image i want to use </p>
<p><a href="http://visualteachingtechnologies.com/wp-content/uploads/2015/01/VTT-Logo_without-text.png" rel="nofollow">http://visualteachingtechnologies.com/wp-content/uploads/2015/01/VTT-Logo_without-text.png</a></p>
<p>thanks<br />
-Angus</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180860</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180860</link>
					<pubDate>Sun, 11 Jan 2015 22:38:57 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Angus,</p>
<p>Great to hear that!</p>
<p>But since you already applied those code, I can&#8217;t no longer add or modified that existing code. I&#8217;d like to quick test some easing animation.</p>
<p>Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong></p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180919</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-180919</link>
					<pubDate>Mon, 12 Jan 2015 01:37:56 +0000</pubDate>
					<dc:creator>Angus M</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181158</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181158</link>
					<pubDate>Mon, 12 Jan 2015 10:57:34 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please try adding this CSS :</p>
<pre><code>.x-navbar.x-navbar-fixed-top .x-navbar-inner {
transition: min-height 0.5s ease;
-webkit-transition: min-height 0.5s ease;
}
.x-navbar-inner {
transition: min-height 0.5s ease !important;
-webkit-transition: min-height 0.5s ease !important;
}</code></pre>
<p>And change this code :</p>
<pre><code>.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand, .x-navbar .x-navbar-inner {
    -webkit-transition: height 2s, padding-top 2s;
    transition: height 2s, padding-top 2s;
}

.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand {
    -webkit-transition: min-height 2s;
    transition: min-height 2s;
}</code></pre>
<p>To this :</p>
<pre><code>.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand, .x-navbar .x-navbar-inner {
    -webkit-transition: height 0.5s ease, padding-top 0.5s ease;
    transition: height 0.5s ease, padding-top 0.5s ease;
}

.x-navbar .desktop .x-nav &gt; li &gt; a, .x-navbar .x-brand {
    -webkit-transition: min-height 0.5s ease;
    transition: min-height 0.5s ease;
}</code></pre>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181362</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181362</link>
					<pubDate>Mon, 12 Jan 2015 17:23:57 +0000</pubDate>
					<dc:creator>Angus M</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you! this is looking great.<br />
do you have any ideas on the image change </p>
<blockquote><p>&#8220;I would like for the scroll menu to have a different logo image of just the globe.<br />
here is the path to the image i want to use</p>
<p><a href="http://visualteachingtechnologies.com/wp-content/uploads/2015/01/VTT-Logo_without-text.png&#038;#8221" rel="nofollow">http://visualteachingtechnologies.com/wp-content/uploads/2015/01/VTT-Logo_without-text.png&#038;#8221</a>;</p></blockquote>
<p>is there a way i can get the image to change at the same speed as the navbar? as of now it just seems to jump between big and small and there is no transition.</p>
<p>I am hoping for something like this </p>
<blockquote class="wp-embedded-content" data-secret="sAfDfuvOkG"><p><a href="https://kriesi.at/support/topic/how-to-change-height-and-opacity-non-fixed-header/" rel="nofollow">How to change height and opacity non-fixed header</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="&#8220;How to change height and opacity non-fixed header&#8221; &#8212; Support | Kriesi.at - Premium WordPress Themes" src="https://kriesi.at/support/topic/how-to-change-height-and-opacity-non-fixed-header/embed/#?secret=98qSqN5NYb#?secret=sAfDfuvOkG" data-secret="sAfDfuvOkG" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>both the actual navbar on the page as well as the solution.</p>
<p>Thank you very much!<br />
Angus</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181763</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-181763</link>
					<pubDate>Tue, 13 Jan 2015 08:11:39 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in! Regretfully this isn&#8217;t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-225904</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-225904</link>
					<pubDate>Thu, 12 Mar 2015 13:37:45 +0000</pubDate>
					<dc:creator>DC_Media</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>We included the code as suggested and everything works fine so far. Except that we&#8217;re experiencing still a &#8220;jumping&#8221; logo. It would be great if you guys could help us to make it a more smooth transition, like in the same speed as the navbar (the logo should resize to the smaller version when scrolling down similarly). </p>
<p>See: <a href="http://www.quaest.net/cms/" rel="nofollow">http://www.quaest.net/cms/</a></p>
<p>Thanks a lot in advance!</p>
<p>Best,<br />
Darius</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-226566</guid>
					<title><![CDATA[Reply To: jQuery &#8211; Sticky header that shrinks when scrolling down]]></title>
					<link>https://theme.co/archive/forums/topic/jquery-sticky-header-that-shrinks-when-scrolling-down/#post-226566</link>
					<pubDate>Fri, 13 Mar 2015 10:59:22 +0000</pubDate>
					<dc:creator>DC_Media</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Theme.co Support Team,</p>
<p>unfortunately I can&#8217;t read your reply, since it was marked as private.</p>
<p>Best<br />
Darius</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

