Hiding and Showing Menu Header
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/links.html
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/links.html
-
-
- Posts: 2
- Joined: Wed Feb 05, 2020 5:46 pm
Hiding and Showing Menu Header
I am using the onscroll event to hide the menu header when the user starts to scroll the page and that is working fine, but how do I get it to show when scrolling back up? I did not see onscrollup or onscrolldown events.
- Pablo
- Posts: 23624
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Hiding and Showing Menu Header
There is no event for this in HTML as far as I know, so this will require a script that keeps track of the scroll direction.
-
-
- Posts: 2
- Joined: Wed Feb 05, 2020 5:46 pm
Re: Hiding and Showing Menu Header
Okay, well I will have to go about this another way using a bookmark object and event trigger on onscrollhide and onscrollreveal actions.
Thank you for your response.
Thank you for your response.
- iamafireman
-
- Posts: 88
- Joined: Mon May 26, 2008 2:41 am
- Location: Tennessee
Re: Hiding and Showing Menu Header
Have you figured out a solution? I have been trying the samething, I think, but with no luck.
-
-
- Posts: 1901
- Joined: Tue Jan 01, 2019 5:50 pm
Re: Hiding and Showing Menu Header
Why not just let it scroll off the page when you scroll down?
Alan
Alan
- BaconFries
-
- Posts: 5977
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Hiding and Showing Menu Header
From what you are asking this may be what you are looking for...
https://codepen.io/tutsplus/pen/WNerWWp
https://codepen.io/tutsplus/pen/WNerWWp
- crispy68
-
- Posts: 3092
- Joined: Thu Oct 23, 2014 12:43 am
- Location: Acworth, GA
- Contact:
Re: Hiding and Showing Menu Header
If Bacon's suggestion is what you are looking for, check out RZ's extension which does the same:
viewtopic.php?f=53&t=64238
viewtopic.php?f=53&t=64238
- iamafireman
-
- Posts: 88
- Joined: Mon May 26, 2008 2:41 am
- Location: Tennessee
Re: Hiding and Showing Menu Header
I was trying to do something similar to this page.
https://www.realtor.com/realestateagent ... _364084422
When you scroll down alittle a different header shows.
Now on this page if you click on "contact info" and then "view website" that will take you to the site I built and my solution I came up with
https://www.realtor.com/realestateagent ... _364084422
When you scroll down alittle a different header shows.
Now on this page if you click on "contact info" and then "view website" that will take you to the site I built and my solution I came up with