Hello All . . .
I am trying to apply interactions to my navbar. Sub navbar should hide while scrolling down and visible while scrolling up. my main navbar is fixed. I dont understand where i am going wrong. feeling very confused .
You dont need to change the order of the DOM to reveal items on scroll and/or add extra margin. Why you add Animation for the Z and not Y?
The best idea is follow this tutorial STEP by STEP - and learn this issue “trick” because your code is very far from the solution (and its hard to tell you what to change like this):
General Fix navbar:
*** I dont know what effect you trying to get because your code is broken. Maybe add reference from other site (or CODEPEN).
i have not used any code for my navbar. I am just trying to apply interaction to hide sub navbar to while scrolling down and make it visible while scrolling up into view.
“You dont need to change the order of the DOM to reveal items on scroll and/or add extra margin. Why you add Animation for the Z and not Y?” i don’t understand what this means?
I am looking exactly opposite output that is shown in tutorial.