Home » How to Create a Shrinking Sticky Header With Elementor

How to Create a Shrinking Sticky Header With Elementor

How to Create a Shrinking Sticky Header With Elementor

Table of Contents

What is a ‘Shrinking Sticky Header’?

Shrinking Header, as the name suggests, is a smaller version of your site’s header. And when the word ‘Sticky’ is added to it which means to stick then it becomes ‘Shrinking Sticky Header’.
So now you must have understood that the shrinking and sticking of the header on scrolling is called ‘Shrinking Sticky Header’.

Why ‘Sticky Header’ is important for your website?

These days you will see this feature in many sites.
Suppose you are reading an article on a website and you have scrolled down to the bottom of the page while reading that article. Now you do not want to read that article further and want to navigate to another page of the website. Now you do not have to scroll back up, for that you will find the ‘Sticky Header’ or ‘Shrinking Sticky Header’ feature very useful. With the help of this you can navigate to any other page at any time from anywhere. It will save your time.

How to create ‘Sticky Header’ for your website with Elementor?

I will explain how to create a sticky header with Elementor.

First of all, you will have to create or build your website header in Elementor page builder.
Now select to edit your Section and navigate to the Advanced tab and select Motion Effects. Then, in the Sticky option, select Top.
There are some settings you can set according to your requirement.

After selecting the settings as shown in the screenshot, your header will be sticky.

Sticky Header with Elementor 01

Creating ‘Shrinking Sticky Header’ with Elementor

If you want to Shrink the logo when you scroll down you can use the following CSS. By doing this your header will shrink because we are going to shorten the logo height.

Sticky Header with Elementor 02
				
					/* shrinking logo image */

#stickyheader img {
	width: 150px!important;
	transition: all .2s linear!important;
	-webkit-transition: all .2s linear!important;
	-moz-transition: all .2s linear!important;
}

#stickyheader .elementor-sticky--effects img {
	width: 120px!important;
	transition: all .2s linear!important;
	-webkit-transition: all .2s linear!important;
	-moz-transition: all .2s linear!important;
}

				
			

You can add above CSS to the Customizer or in Elementor’s CSS located in Elementor Settings. See the images below.

Elementor CSS Option

I hope you enjoyed this article.

Have you encountered any problems? You can reach out to me via email or contact me.

To know more interesting facts about WordPress plugins, please subscribe to our YouTube Channel and you can also follow W3Mind on Facebook.

About Author
Picture of W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!