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
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.
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.
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: 84
- 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.
Re: Hiding and Showing Menu Header
Why not just let it scroll off the page when you scroll down?
Alan
Alan
- BaconFries
-
- Posts: 5369
- 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
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: 84
- 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