I have a couple of queries, mainly to do with fixing a sub navbar, but also with my fixed navbar on my home page and also site searches.
Firstly, i am using two navbars on one page, the first one is my main navigation and the second is a sub navigation with information purely to do with the selected page.
The prefect example is the Webflow Forum page, when you scroll down their main bar disappears and then the grey section is fixed once the blue section has gone. That is what i am trying to achieve. Also, how do you add a site search to your site?
Second, when you keep scrolling up on my home page there appears to be a white section that starts to cut off my navbar logo and my links. I know people wonât always be scrolling up to that extent but i would like to stop that happening. Again, this doesnât happen on the Webflow Forum site so there must be a solution.
That is strange, i am not sure what has happened there. Please try the read only link below, i have checked this link and it is definitely there on âOther Pagesâ.
Yes that is correct, just like the Webflow Forum page. When you scroll down their blue nav bar disappears and the light grey one is then fixed to the top of the page.
Also, thank you for your input with regards to Swiftype, i will take a look over the next few days.
We will make interaction with scroll trigger, which will be activated when Navbar (regular one) will scroll out of screen view. Since there is no content right now, I added one more section for make page longer and let Navbar scroll out of view completely.
âSub navâ make position: fixed and align as you want it to be on the page. Add Transform: move Y: -100% (move up on 100%).
Apply Interaction to Navbar:
Trigger= Scroll, Affect different element: Sub Navbar
Scroll in to view = Transform: move Y: -100%
Scroll out of view = Transform: move to origin
Sorry, i donât think i was very clear with my post and i read your post incorrect.
I want the navbar and subnav to be in the position they are in when the page is open, but when the navbar is scrolled out of view the sub navbar becomes a fixed position.
What i am trying to achieve is exactly what this forum page has done. When the blue navbar is scrolled out of view, the grey sub navbar is then fixed.