Great tutorial OB! Quick question, I have 2 containers with this order: 1. The hide & show 2. Main Header How i can hide the top container that will not show when the page loads, and will hide and show like here in the video?
I love all your video. Amazing. Do you have a css to change color of header passing gradually from transparent to any color during the scrolling ? Thanks
Yes, you just have to add another property to animate which is the opacity. Like this: const show_hide_header = gsap.from( site_header, { yPercent: -100, opacity: 0, duration: 0.25, ease: "sine.out", } ).progress( 1 );
@@OoohBoi Dude, this is amazing! I tried adding just the opacity into the code section already in place ( opacity: 0, ) but it doesn't seem to have changed. the background opacity. do i need to setup a "gsap.to" with opacity:1,? Sorry I'm still learning :)
but it didn t works with GSAP Trigger and LOCOMOTIVE Scroll Feature... :( and in greensock forums i could nothing found about changing the colour from the sticky header
I want to ask something pls, i have a transparent background by default, and i want to change the color to grey per exemple when it is direction === -1. How to do it or where should i insert the background-color. Thank you
Thank you for the excellent work! It works great of course, the only question I have is this: does this affect the overflow property of the container? because I think it automatically changes to Auto.
my hamburger style nav menu on mobile and tablet view doesnt seem to work when i create this guide, it doesnt show the nav menus option. Am i missing something pleaaase help
Hey, let me just say your stuff is brilliant, we use it all the time! Though this time I found something that can do what you show here, but it's much more simple, no Java required! .header-sticky { transform: translatey(-80px); opacity: 0; -moz-transition: all .3s ease!important; -webkit-transition: all .3s ease!important; transition: all .3s ease!important; } .elementor-sticky--effects.header-sticky { opacity: 1; height: auto!important; transform: translatey(0px); } It's completely simple really: simply give to whatever section you want the CSS class ".header-sticky", and make sure to set the Sticky Effects Offset to something more than 0, lets say 300. The section will be invisible while you are on top of the page, and appear when you do down (note the opacity in the CSS). Saw it in this video I think, do check that one out as well for more info! th-cam.com/video/77BUOsY9kwA/w-d-xo.html
Doesn't that do something quite different though? Your code only shows and hides a header when you scroll down from the top of the page. The code from this video shows and hides the header when you scroll up or down, no matter where you are on the page.
Hi, thank you for your tutorial ! That doesn't work for me, when i activate LOCOMOTIVE SCROLL, any idea of how to do this effect with locomotive scroll activated ? thank you
You should provide more details so I can figure out what MIGHT be wrong. But when you just say "this doesn't work" then I can't help buddy. Did you check the browser's console (developer tools) for errors?
@@OoohBoi he told you that this not work with LOCOMOTIVE Scroll enabled, for my website it doesn t work aswell with Locomotive Scroll because the sticky part is not affected the scroll..
Incredible! Do you know how to make the header appear after the scroll? Appear exactly when reaching the second section, if I use the height in VH in the first section? Thanky you!
When I scroll down the page and refresh the page, the header shows and then scrolls away. This seems strange behaviour. How should I tweak the script so the header does not show when scrolled down and page refreshed?
Everythings works perfectly but I simply want to invert the action. So basically to show the header on scroll down instead of hiding it. So the header would be hidden when first loaded, but with scrolling down it would appears. Can you help how to do so?
3 หลายเดือนก่อน
I've been trying for days to do this, but I can't find a current tutorial :(( Does anyone have a recent code? I can't find a way to make Locomotive Scroll work with this plugin. Please help! I'm desperate.
I love Steroids for Elementor. Such a useful plugin. I have a question for this tutorial. The content of the page moves up to the top of the page behind the header. I suppose this is due to making it sticky thus taking it out of the flow. What is the best approach to make the page content jump down 100 px or whatever the height of the header is?
Great tutorial! This works perfeclty. I just had one question: how do I make my header scroll up with page for the first 72px of the page (so not-sticky), and make the function work only after that? Kind of like the SONOS website.
Find the ... ScrollTrigger.create( { ...line first, it should be closer to the bottom... right after that line is another one which defines the START position of the trigger event, something like... start: "top top-=" + site_header.offsetHeight, ... just add required offset to the end... start: "top top-=" + ( site_header.offsetHeight + 72 ),
I'm trying to use this with Locomotive Scroll but it doesn't work. I've tried what is in your last video about GSAP + Locomotive Scroll but it doesn't work 😔
You have to be sure to know what you're doing, please do some quick research with Google! Locomotive Scroll does hijack the browser scroller, and if you want to use it with the GSAP/ScrollTrigger - you'll have to use the workaround. I have also talked about in my previous video: th-cam.com/video/ccGpcvi-t4A/w-d-xo.html
Thanks for your contributions! It would be great in the Steroids for Elementor plugin to include in the HOVERANIMATOR extension a color transition of the fonts and icons!
The problem is how the particular type of widget is structured html-wise ! It's hard to make an exception while there are zillions of widgets (including the third-party ones) out there.
So I followeed you move by move, and purchsed the pack from your store (in case I missed something) and I still can't get this working. What am I missing here?
Great tutorial as always! Is it possible to create a sticky or show-hide header that will change it's background and font color depending on the underlying section color? If so, would it be possible to make a tutorial? Thanks
hi! thank you for sharing your knowladge ( i bought many of your product in gumroad and they also very good!) i hava a quastion: idf in gsap libary i want to add the extra plugins from club greensock what i need to do? could you add this option for steroids? (to club membrs)
Thanks for your purchase buddy!!! All of the "club members" GSAP plugins can't become a part of the SFE due to the license nature, as simple as that. If you want to enqueue them on your own, you'll have to use your currently active (child) theme functions file. I'm talking about the WordPress enqueuing, like this: developer.wordpress.org/themes/basics/including-css-javascript/
Hello, I followed your tutorial on Show-Hide-Header with your locoscroll template. I have enabled locomotive, as well as GSAP and GSAP scroll trigger but I cannot make the show-hide-header work. Could you please tell me if there is a way to make this work on the locoscroll-by-ooohboi template? Thanks in advance. Best,
My friend, you gotta have a basic understanding of what the Loco Scroll is... in just a few words, you can't do something like that because the Loco Scroll hijacks the scroller. Literally! And then everything else scroll-related hangs, it loses connection with the scroller position.
Thank you so much Oooh Boi for this video and all the amazing other ones! Your plugin and video's are amazing content. I'll be buying you a cup of coffee soon! BTW. I managed to tweak the code a little bit so it works for a (mobile) bottom menu as well. If anyone wants to have the code, send me a message. TH-cam wont let me upload it here in the comment section.
@@casperpost2557 Hi casper how can we know the code? when i put it in a mobile/tablet mode the hamburger menu doesnt work and there is no option to show the header options when putting it in a mobile and tablet view. pleaaase help
Hi! thank you so much for this video! could you upload a video that explain how to use page transition with barba.js? i know it's possible but i got so lost in the process..
Will do that soon. Essentially, you'll need the child theme in order to modify HEADER and FOOTER of the theme because Barba requires two data-attributes and the page transition/animation container. On top of that, Elementor includes the particular page styles "dynamically", and which is kinda bad with Barba hence the fact both Header and Footer are loaded only once throughout entire website. Here's something that might help a bit : thisisadvantage.com/page-transitions-using-barba-js-wordpress-elementor/
@@OoohBoi Oh Ok but I have to uninstall it every time otherwise elementor does not work. Maybe something else creating issues anyway learning lot from you. Thanks for sharing your knowledge.
@@HaseebKhalid Just use "Hello Elementor" theme to eliminate your currently active theme as a troublemaker. All of my tuts are done with "Hello Elementor" so I'm 100% positive that it works.
hi man im a new subscriber , i think your channel is so useful . thank you for your content . but i dont know about the thumbnail images because they all look the same which is something i dont like . it just make it hard to remember what video i have watched cause they all the same in my opinion .
3 ปีที่แล้ว
Nice one bro !!! More Elementor videos in future ;-)
Just resize browser's window. But if you ask about the menu, that's not the real menu anyway. You can check another video of mine on how to create the perfect header template: th-cam.com/video/zOQN5264Ves/w-d-xo.html
Wow..! Nice article..! Your plugin has helped me a lot sir..! But now i am in a big trouble. I installed oohoi plugin with elementor Hello theme. And I activated Locomotive scroll. Worked well..! But when I tried to insert show-hide header, it is not working at all. I also used the code in your following video th-cam.com/video/ccGpcvi-t4A/w-d-xo.html&t , but it didn't work. Can you please help me sir..? I don't know how to do this using GSAP + ScrollTrigger + Loco. Thank you..!
Please come up with more Custom Code + Elementor combination videos! Damn! You are sooo underrated! Keep up doing fantastic works!
Believe it or not, 99% of people asked me to cut that kind of tutorials. I guess I went too far ahead.
@@OoohBoi There are many people who loves that as well.. Carry it on.. And thanks a lot!
PERFECTO!
Keep going my oooboi! Who wouldn't like to play hide-and-seek with his headers anyway...?
Followed every step ... but code didn't work ... does this need some kind of update?
Oh finally I a seeing GSAP integration, loving it man please keep up the great work, love GSAP
Thanks, will do!
love these GSAP videos. Keep em coming.
Like I mentioned in the video, there will be more!
Great tutorial OB!
Quick question, I have 2 containers with this order:
1. The hide & show
2. Main Header
How i can hide the top container that will not show when the page loads, and will hide and show like here in the video?
I love all your video. Amazing.
Do you have a css to change color of header passing gradually from transparent to any color during the scrolling ? Thanks
Yes, you just have to add another property to animate which is the opacity. Like this:
const show_hide_header = gsap.from( site_header, {
yPercent: -100,
opacity: 0,
duration: 0.25,
ease: "sine.out",
} ).progress( 1 );
@@OoohBoi Dude, this is amazing! I tried adding just the opacity into the code section already in place ( opacity: 0, ) but it doesn't seem to have changed. the background opacity. do i need to setup a "gsap.to" with opacity:1,? Sorry I'm still learning :)
Hey Ooh boi... always excited to get a notification from you 🙂👍🏿
but it didn t works with GSAP Trigger and LOCOMOTIVE Scroll Feature... :( and in greensock forums i could nothing found about changing the colour from the sticky header
Always like videos before even view the title. Keep going bro. In top 🔝
I want to ask something pls, i have a transparent background by default, and i want to change the color to grey per exemple when it is direction === -1. How to do it or where should i insert the background-color. Thank you
Update : I decided to change the transparent header to black transparent. So, I'm fine now. Keep going
Thank you for the excellent work! It works great of course, the only question I have is this: does this affect the overflow property of the container? because I think it automatically changes to Auto.
my hamburger style nav menu on mobile and tablet view doesnt seem to work when i create this guide, it doesnt show the nav menus option. Am i missing something pleaaase help
Hey, let me just say your stuff is brilliant, we use it all the time!
Though this time I found something that can do what you show here, but it's much more simple, no Java required!
.header-sticky {
transform: translatey(-80px);
opacity: 0;
-moz-transition: all .3s ease!important;
-webkit-transition: all .3s ease!important;
transition: all .3s ease!important;
}
.elementor-sticky--effects.header-sticky {
opacity: 1;
height: auto!important;
transform: translatey(0px);
}
It's completely simple really: simply give to whatever section you want the CSS class ".header-sticky", and make sure to set the Sticky Effects Offset to something more than 0, lets say 300.
The section will be invisible while you are on top of the page, and appear when you do down (note the opacity in the CSS).
Saw it in this video I think, do check that one out as well for more info!
th-cam.com/video/77BUOsY9kwA/w-d-xo.html
OK, fair enough!
Doesn't that do something quite different though? Your code only shows and hides a header when you scroll down from the top of the page. The code from this video shows and hides the header when you scroll up or down, no matter where you are on the page.
Hi, thank you for your tutorial !
That doesn't work for me, when i activate LOCOMOTIVE SCROLL, any idea of how to do this effect with locomotive scroll activated ?
thank you
You should provide more details so I can figure out what MIGHT be wrong. But when you just say "this doesn't work" then I can't help buddy. Did you check the browser's console (developer tools) for errors?
@@OoohBoi he told you that this not work with LOCOMOTIVE Scroll enabled, for my website it doesn t work aswell with Locomotive Scroll because the sticky part is not affected the scroll..
Incredible! Do you know how to make the header appear after the scroll? Appear exactly when reaching the second section, if I use the height in VH in the first section?
Thanky you!
When I scroll down the page and refresh the page, the header shows and then scrolls away. This seems strange behaviour. How should I tweak the script so the header does not show when scrolled down and page refreshed?
Liked before watching because how awesome your content is ! :)
Yay! Thank you!
Everythings works perfectly but I simply want to invert the action. So basically to show the header on scroll down instead of hiding it. So the header would be hidden when first loaded, but with scrolling down it would appears. Can you help how to do so?
I've been trying for days to do this, but I can't find a current tutorial :((
Does anyone have a recent code? I can't find a way to make Locomotive Scroll work with this plugin.
Please help! I'm desperate.
I love Steroids for Elementor. Such a useful plugin. I have a question for this tutorial. The content of the page moves up to the top of the page behind the header. I suppose this is due to making it sticky thus taking it out of the flow. What is the best approach to make the page content jump down 100 px or whatever the height of the header is?
Great tutorial! This works perfeclty. I just had one question: how do I make my header scroll up with page for the first 72px of the page (so not-sticky), and make the function work only after that? Kind of like the SONOS website.
Find the ...
ScrollTrigger.create( {
...line first, it should be closer to the bottom... right after that line is another one which defines the START position of the trigger event, something like...
start: "top top-=" + site_header.offsetHeight,
... just add required offset to the end...
start: "top top-=" + ( site_header.offsetHeight + 72 ),
I'm trying to use this with Locomotive Scroll but it doesn't work. I've tried what is in your last video about GSAP + Locomotive Scroll but it doesn't work 😔
You have to be sure to know what you're doing, please do some quick research with Google! Locomotive Scroll does hijack the browser scroller, and if you want to use it with the GSAP/ScrollTrigger - you'll have to use the workaround. I have also talked about in my previous video: th-cam.com/video/ccGpcvi-t4A/w-d-xo.html
Thanks for your contributions! It would be great in the Steroids for Elementor plugin to include in the HOVERANIMATOR extension a color transition of the fonts and icons!
The problem is how the particular type of widget is structured html-wise ! It's hard to make an exception while there are zillions of widgets (including the third-party ones) out there.
So I followeed you move by move, and purchsed the pack from your store (in case I missed something) and I still can't get this working. What am I missing here?
Did you get my latest message/email?
Great tutorial as always!
Is it possible to create a sticky or show-hide header that will change it's background and font color depending on the underlying section color?
If so, would it be possible to make a tutorial? Thanks
That's definitely possible! I advise you to go to the GreenSock forum and start the topic. Maybe there is already a topic on that subject!
@@OoohBoi I am sure you'd make a much better tutorial 😁
@@OoohBoi This one? greensock.com/forums/topic/27271-gsap-locomotive-scroll-sticky-header-not-working/?tab=comments#comment-133450
hi! thank you for sharing your knowladge ( i bought many of your product in gumroad and they also very good!) i hava a quastion: idf in gsap libary i want to add the extra plugins from club greensock what i need to do? could you add this option for steroids? (to club membrs)
Thanks for your purchase buddy!!! All of the "club members" GSAP plugins can't become a part of the SFE due to the license nature, as simple as that. If you want to enqueue them on your own, you'll have to use your currently active (child) theme functions file. I'm talking about the WordPress enqueuing, like this: developer.wordpress.org/themes/basics/including-css-javascript/
Hello,
I followed your tutorial on Show-Hide-Header with your locoscroll template. I have enabled locomotive, as well as GSAP and GSAP scroll trigger but I cannot make the show-hide-header work.
Could you please tell me if there is a way to make this work on the locoscroll-by-ooohboi template?
Thanks in advance.
Best,
My friend, you gotta have a basic understanding of what the Loco Scroll is... in just a few words, you can't do something like that because the Loco Scroll hijacks the scroller. Literally! And then everything else scroll-related hangs, it loses connection with the scroller position.
I did all the steps very carefully and double check everything, check with 3 browsers, and ins't working for me. May you help me please?
Are there any JS errors in the browser Console?
Thank you so much Oooh Boi for this video and all the amazing other ones! Your plugin and video's are amazing content. I'll be buying you a cup of coffee soon!
BTW. I managed to tweak the code a little bit so it works for a (mobile) bottom menu as well. If anyone wants to have the code, send me a message. TH-cam wont let me upload it here in the comment section.
Heyy, can I have the code. Thanks in advance !
For some reason youtube wont let me post the code in any way. I cant even link to a page where I put the code... Do you know a solution?
@@casperpost2557 Hi casper how can we know the code? when i put it in a mobile/tablet mode the hamburger menu doesnt work and there is no option to show the header options when putting it in a mobile and tablet view. pleaaase help
hey mate was hoping to get that code
@@katrinasangalang941 hey did you end up fixing this issue? Im running into that same problem
Great Video as always. Is ist possible to create a megamenue without any Plugin?
I'm not sure, the menu is somewhat dynamic thing. But I don't exclude it as a possibility.
Hi! Great stuff as always.
I've noticed that it says Howdy Damir in your WP. Are you from Croatia perhaps?
Jeste.
Da :)
Love your tutorials, thanks a lot!
Thanks for watching buddy!
Hi! thank you so much for this video! could you upload a video that explain how to use page transition with barba.js? i know it's possible but i got so lost in the process..
Will do that soon. Essentially, you'll need the child theme in order to modify HEADER and FOOTER of the theme because Barba requires two data-attributes and the page transition/animation container. On top of that, Elementor includes the particular page styles "dynamically", and which is kinda bad with Barba hence the fact both Header and Footer are loaded only once throughout entire website. Here's something that might help a bit : thisisadvantage.com/page-transitions-using-barba-js-wordpress-elementor/
Thanks ooh boii ... You are the best . You solved my problem ..
Glad to read I did!
Perfect as always, for real! Where do i can find the exact css code to run this?
Thank you so much this helps a lot :)
Not working wth latest elemetor version.
It has absolutely nothing to do with the version of Elementor. Not even a tiny little bit.
@@OoohBoi Oh Ok but I have to uninstall it every time otherwise elementor does not work. Maybe something else creating issues anyway learning lot from you. Thanks for sharing your knowledge.
@@HaseebKhalid Just use "Hello Elementor" theme to eliminate your currently active theme as a troublemaker. All of my tuts are done with "Hello Elementor" so I'm 100% positive that it works.
hi man im a new subscriber , i think your channel is so useful . thank you for your content .
but i dont know about the thumbnail images because they all look the same which is something i dont like .
it just make it hard to remember what video i have watched cause they all the same in my opinion .
Nice one bro !!! More Elementor videos in future ;-)
That's the plan!
Awosome!! Thanks OOOOOOOOOOOOOH BOY 📈🚀🌀
You're welcome!
Great man, good job 🔥
Thanks 🔥
Please make an upcoming video on how to use Barba.js :D
Will do soon!
simply the best
You are absolutely awesome! I'm waiting for barba.js tutorial :)))
yes please
Thanks buddy! I'll try to make one as soon as possbile.
thank you!!
You're welcome!
mmmmazing, thanks boi.
Any time!
mobile version ?
Just resize browser's window. But if you ask about the menu, that's not the real menu anyway. You can check another video of mine on how to create the perfect header template: th-cam.com/video/zOQN5264Ves/w-d-xo.html
This should be a default from elementor headers
Wow..! Nice article..! Your plugin has helped me a lot sir..! But now i am in a big trouble. I installed oohoi plugin with elementor Hello theme. And I activated Locomotive scroll. Worked well..! But when I tried to insert show-hide header, it is not working at all. I also used the code in your following video th-cam.com/video/ccGpcvi-t4A/w-d-xo.html&t , but it didn't work. Can you please help me sir..? I don't know how to do this using GSAP + ScrollTrigger + Loco. Thank you..!