<?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>Header Resize On Scroll with Animations &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 06:07:04 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-210646</guid>
					<title><![CDATA[Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-210646</link>
					<pubDate>Fri, 20 Feb 2015 03:09:36 +0000</pubDate>
					<dc:creator>awecesar</dc:creator>

					<description>
						<![CDATA[
						<p>Hey,<br />
I would like to have my top bar with my logo and navigation change a bit if someone scrolls down &#8211; the effect I mean is visible here: <a href="http://callmenick.com/tutorial-demos/resize-header-on-scroll/" rel="nofollow">http://callmenick.com/tutorial-demos/resize-header-on-scroll/</a><br />
Is there a way to accomplish this in X?<br />
Thanks so much &#8211; you guys are making this theme twice as good!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211037</guid>
					<title><![CDATA[Reply To: Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211037</link>
					<pubDate>Fri, 20 Feb 2015 14:38:08 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in! This is technically possible with custom development. While that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.</p>
<p>Try inserting this under <strong>Custom &gt; JavaScript</strong> in the Customizer:</p>
<pre><code>jQuery(document).ready(function($) {
  $(window).scroll(function() {
    var scrollPos = $(window).scrollTop(),
        navbar = $(&#039;.x-navbar&#039;);

    if (scrollPos &gt; 150) {
      navbar.addClass(&#039;navScroll&#039;);
    } else {
      navbar.removeClass(&#039;navScroll&#039;);
    }
  });
});
</code></pre>
<p>And this under <strong>Custom &gt; CSS</strong> in the Customizer:</p>
<pre><code>@media (min-width: 980px) {
    .x-navbar .x-navbar-inner,
    .x-navbar .x-brand img,
    .x-navbar .desktop .x-nav &gt; li &gt; a {
        transition: 0.25s all linear;
    }
    .x-navbar.navScroll .x-navbar-inner {
        min-height: 80px;
        transition: 0.25s all linear;
    }
    .x-navbar.navScroll .x-brand img {
        max-width: 150px;
    }

    .x-navbar.navScroll .desktop .x-nav &gt; li &gt; a {
        height: 70px;
        padding-top: 40px;
    }
}
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211372</guid>
					<title><![CDATA[Reply To: Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211372</link>
					<pubDate>Fri, 20 Feb 2015 22:12:48 +0000</pubDate>
					<dc:creator>awecesar</dc:creator>

					<description>
						<![CDATA[
						<p>wow this works really well! thank you so much!<br />
just one more question to this &#8211; could you provide me with a code that allows me to change the logo image when scrolling down like here in my photoshop image?<br />
<a href="http://prntscr.com/67qfar" rel="nofollow">http://prntscr.com/67qfar</a></p>
<p>THANK YOU!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211720</guid>
					<title><![CDATA[Reply To: Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-211720</link>
					<pubDate>Sat, 21 Feb 2015 13:30:46 +0000</pubDate>
					<dc:creator>Senthil</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>We&#8217;re happy that it solved your problem.</p>
<p>Pleas replace the previous JavaScript code with the below one to use an alternate image while it scrolls down.</p>
<p>You can can replace this line in the code with your own image URL<br />
var imageUrl=&#8217;<strong><a href="http://placehold.it/50&#215;50" rel="nofollow">http://placehold.it/50&#215;50</a></strong>&#8216;;</p>
<pre><code>jQuery(document).ready(function($) {
  $(window).scroll(function() {
    var scrollPos = $(window).scrollTop(),
        navbar = $(&#039;.x-navbar&#039;);
	var imageUrl=&#039;http://placehold.it/50x50&#039;;

    if (scrollPos &gt; 150) {
    	navbar.addClass(&#039;navScroll&#039;);
		jQuery(&#039;.x-navbar.navScroll .x-brand img&#039;).css(&#039;opacity&#039;,0);
		jQuery(&#039;.x-navbar.navScroll .x-brand&#039;).css(&#039;background&#039;,&#039;url(&#039;+imageUrl+&#039;) no-repeat left center&#039;);
    } else {
		    			
		jQuery(&#039;.x-navbar.navScroll .x-brand&#039;).css(&#039;background&#039;,&#039;transparent&#039;);
		jQuery(&#039;.x-navbar.navScroll .x-brand img&#039;).css(&#039;opacity&#039;,1);		
		navbar.removeClass(&#039;navScroll&#039;);
		
    }
  });
});</code></pre>
<p>Hope it helps, thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-855076</guid>
					<title><![CDATA[Reply To: Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-855076</link>
					<pubDate>Mon, 28 Mar 2016 13:35:18 +0000</pubDate>
					<dc:creator>scottkwilson</dc:creator>

					<description>
						<![CDATA[
						<p>This has worked beautifully for me! Just what I needed! I do have a request for an additional tweak though. On my site (scottkeithwilson.com), the header transitions to soon on the homepage. I&#8217;m currently using scrollPos &gt; 33 in the JS, which is perfect for all other pages, but as you can see on the homepage the transition is too soon. I&#8217;d like it to transition when the header touches the top of the browser. Is this possible?</p>
<p>Also, on a slightly different note, it would really be ideal to replicate this effect (<a href="http://www.rubbish-taxi.com/" rel="nofollow">http://www.rubbish-taxi.com/</a>) where the header disappears from the page, then drops down in a smaller verison. If this is possible (i.e. within scope of X support), that would really make my day.</p>
<p>Thanks! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-855859</guid>
					<title><![CDATA[Reply To: Header Resize On Scroll with Animations]]></title>
					<link>https://theme.co/archive/forums/topic/header-resize-on-scroll-with-animations/#post-855859</link>
					<pubDate>Tue, 29 Mar 2016 00:47:06 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

