A Fully Shrinking Sticky Header On Scroll With Elementor

A Fully Shrinking Sticky Header On Scroll With Elementor

Jeffrey @ Lytbox

2 года назад

41,989 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Buenachito
Buenachito - 10.09.2023 04:21

Finally, somebody explain very very VERY simple :) thanks.

Ответить
Martin Schnitzer
Martin Schnitzer - 25.08.2023 14:53

i got it thank you, i forgot to set !important to color

Ответить
Martin Schnitzer
Martin Schnitzer - 25.08.2023 14:51

how can i change the font colour from transparent header to shrinking header

Ответить
Martin Schnitzer
Martin Schnitzer - 25.08.2023 14:20

Does not work with flex-container

Ответить
Jeremy Johnston
Jeremy Johnston - 22.08.2023 23:35

You referenced the menu that was already built. Do you have a video on building the menu?

Ответить
Micheline-Coretta Machia-Maimouna
Micheline-Coretta Machia-Maimouna - 22.08.2023 00:33

Hello,thanks for the tutorial. Please what if I want it to shrink after delay instead

Ответить
Carolin Grant
Carolin Grant - 21.08.2023 15:53

Hi, anyone got some idea why my header is growing instead of shrinking? I got 20px padding top and bottom and 6px each in the shrinking option..

Ответить
Rik Derks
Rik Derks - 20.08.2023 12:56

Adjusted the css a bit for the menu items ''horizontal padding'', after scroll, you want to decrease this a bit, the same % as your typography. So if you'd go from 1.5rem size typography to 1.0rem you decrease it with 33%, same you should do with the horizontal padding.

/* shrinking menu */

.shrinker.elementor-sticky--effects ul li a {
font-size: .95rem!important;
transition: all .2s linear!important;
-webkit-transition: all .2s linear!important;
-moz-transition: all .2s linear!important;
padding-left: 1.0rem!important;
padding-right: 1.0rem!important;
}

Ответить
pinMy.reviews
pinMy.reviews - 04.08.2023 14:11

Great tutorial! Very good explained and worked for me

Ответить
RJ Capara
RJ Capara - 14.07.2023 10:23

This tutorial is really helpful! Thanks Bro. I tried this with the new Flexbox Container feature of elementor and it doesn't work as expected. I hope you can also create a tutorial for that.

Ответить
Hope Wave Media Pty Ltd
Hope Wave Media Pty Ltd - 13.06.2023 12:21

Thank you Jeffrey, excellent video as usual, you are an excellent teacher, I like how you share information, is very easy to follow, keep doing what you are doing

Ответить
OKUNEV
OKUNEV - 06.06.2023 19:06

I dont get why elementor doesnt provide such templates with normal settings..

Ответить
Fadhli Taqwal
Fadhli Taqwal - 28.05.2023 13:47

ive bee trying ur tutorial and when i insert the css code, nothing change to my website header. any suggest?

Ответить
Longhorn Lounge
Longhorn Lounge - 23.05.2023 22:41

Anyone else lose the Customize option? If so, know how to get it back? 🤔 T.I.A.

Ответить
Patrick McDermott
Patrick McDermott - 19.05.2023 12:56

Found your article online and thought it provided instructions for everything I needed for a stick header. Thank you!

Ответить
Patrick Suchy
Patrick Suchy - 09.05.2023 03:43

Love the videos man, everything works great but I have a question.

When on my desktop if I make the window smaller and then go to full screen, the 'shrinker' navbar is broken and stays at the same width as it was. Is there a way to fix that?

Ответить
Rodrigo Medina
Rodrigo Medina - 09.05.2023 01:49

Great tutorial! Your explanantin make it very easy. Do you have a solution if you want to make the background transparent but blurry on scroll?

Ответить
Maria Bobert
Maria Bobert - 07.05.2023 22:36

Hero!🙌

Ответить
RMO
RMO - 16.04.2023 17:42

Hi I have the problem on mobile. When the header shrinks then the body jumps up, it is not working smooth. May anyone has this issue too?

Ответить
BLICKFRISCH DESIGN, Kim N. Stahmer
BLICKFRISCH DESIGN, Kim N. Stahmer - 12.04.2023 13:09

Hi,

great tutorial, thanks!
I did it and so it works, but only when I am logged in. In incognito browser and also in other browsers like Firefox for example, it doesn't work.

Can it be that it is because of the containers in Elementor? Your tutorial is still with the older version of Elementor.

Thanks for your feedback.

Ответить
nextexitgraff
nextexitgraff - 01.04.2023 21:34

dude I've been bitching and complaining to elementor for almost a year now since THEIR css for this feature stopped working after about version 3.7. THIS works perfectly, even for containers and an svg logo, and I wish I woulda watched this sooner! **EDIT: guess I spoke too soon, I'm noticing that whenever the browser window is adjusted the header doesn't stay full width : /
***EDIT EDIT: So I added "width: 100%!important;" before the "background" line in the css, to both sections and it fixed this issue that I see other commenters mentioning!

Ответить
Lewis Woods
Lewis Woods - 27.03.2023 13:39

For anyone having any visual problems like I did, try adding the !important onto the end lines of your code like so: .shrinker.elementor-sticky--effects {
background-color: rgba(0,0,0,.8) !important; } - This will over-ride any default CSS applied by Elementor.

Ответить
Jos Rekker
Jos Rekker - 18.03.2023 15:59

Hello, i tried it but it is extending my header instead of shrinking it.

Ответить
Álvaro José Flores
Álvaro José Flores - 17.03.2023 23:47

Thank you, Jeffrey! For sharing your resources and knowledge. Be healthy and successful! 👍🏻💪🏻

Ответить
uff
uff - 17.03.2023 01:12

Great thanks! But unfortunately when I now start zooming on the page with CTRl & Plus/MInus the header is not 100% percent anymore (I set almost everywhere already a width of full with). Is there a way to force in CSS to stay always at 100%

Ответить
Stuart Ibbotson
Stuart Ibbotson - 28.02.2023 22:12

What happens with just a hamburger menu only

Ответить
Shehan Karunaratne
Shehan Karunaratne - 27.02.2023 21:21

Thank you so much for this video. I have been struggling for days until I came across this video.

Ответить
Music and Design
Music and Design - 12.02.2023 15:17

This is the best and most easy video for this topic. Thanks a lot Jeffrey!

Ответить
EPHS
EPHS - 06.02.2023 20:39

This is a great start but it doesn't reset the width properly. For example, if you try to change the width of the window on desktop, it scales everything down but then when you try to make the window wider it keeps the header the size on mobile. It won't stretch back out responsively.

Ответить
Antonio
Antonio - 02.02.2023 01:03

Hi @Jeffrey. When I resize the window the header doesnt adjust to desktop.

Ответить
Next Inspections
Next Inspections - 31.01.2023 08:20

I think I have 2 many elements in my header. My Buttons, Phone and Email all got larger and the transparency never activate.

Ответить
Claudio Musiari Comunicazione
Claudio Musiari Comunicazione - 11.01.2023 14:46

Thanks for you video. If I need to change the menu font color on scroll? Thanks a lot!

Ответить
Jesse Belleman
Jesse Belleman - 11.01.2023 00:40

Thanks a lot sir!

Ответить
Free Van den Bergh
Free Van den Bergh - 30.11.2022 03:51

Hello thanks for this video, it really helped me. I'm done shrinking my header, but the only thing that I want to get done is changing the text color, I would like to change it from white to black. Do you have a code for this as well? Thanks in advance!

Ответить
DanishTroll
DanishTroll - 22.11.2022 12:20

mate you're the best. you deserve way more subs.

Ответить
Digital Marketing with AM Info Tech
Digital Marketing with AM Info Tech - 17.11.2022 07:53

Thank You So Much I was struggling for that from long time but your video make it simple thank you very much

Ответить
Game Taco
Game Taco - 14.11.2022 18:53

I'm having trouble getting this to work with a fluid container for some reason.

Ответить
Philip Andrews Photography
Philip Andrews Photography - 14.11.2022 01:15

So for some reason the moment I add in the CSS For the menu the background and shrinking stops. Any ideas?

Ответить
M Naufal Rizki
M Naufal Rizki - 10.11.2022 11:33

dude, you straight to the point and it's very useful👏

Ответить
Hudiya Ichwana
Hudiya Ichwana - 30.10.2022 12:37

very great

Ответить
John Mclaughlin
John Mclaughlin - 28.10.2022 17:57

That's an outstanding tutorial. It worked a treat. Thank you.

Ответить
Kike Update
Kike Update - 25.10.2022 12:35

great video, is so easy with this guide-video

Ответить
Josh Louw
Josh Louw - 24.09.2022 16:29

Question for you - how can you change the colour of the logo and menu text from say white before you start to scroll to black with a white background when you do scroll down? So basically changing the logo and text colours as well on scroll. Thanks much and keep it coming! Very easy to follow along.

Ответить
Pheonix O’Brien
Pheonix O’Brien - 23.09.2022 03:07

Question for your brilliant expertise, please! I used this tutorial and it looks so slick on desktop with a horizontal menu, as you did in the video. But the tablet and mobile versions utilize the hamburger icon, and when you click to drop-down, it only shows the top nav link... the rest of the vertical drop down menu is completely cut off. I tried setting the Z index to 100, and I changed the Elementor Overflow setting from Hidden to Default; but nothing changed. What would you do? Has anyone else run into this? Thanks so much in advance.

Ответить
Stuart Ibbotson
Stuart Ibbotson - 22.09.2022 21:58

Question : If we where Shrinking an icon would it be the same as the button ?

Ответить
Susan Denise
Susan Denise - 20.09.2022 10:06

This is great. What if one has two logos? One logo is for big screens and another logo is for smaller screens.

Ответить
Alna Timmermans
Alna Timmermans - 19.09.2022 15:02

Thank you for this helpful tutorial. I have a menu with 3 columns structure. Is there any possibility of changing/merging the column structure to 1?

Ответить
Francisco Lopez
Francisco Lopez - 08.09.2022 23:35

Dude! Thanks!!

Ответить