- Joined
- Nov 24, 2021
- Messages
- 1
- Reaction score
- 0
So I have logo on left and nav on right.
My wish is that, on scroll, I want logo and nav to disappear and appear from seperate direction.
Logo disappear/appear from the left side, and the menu to disappear/appear from the right,
instead on disappearing/appearing from the top that almost all tutorials shows.
I have added the code to the codepen, and kind of tried out myself with the nav only, but could not have it to work.
If you look at javascript and scroll a bit down, I have added comment from where I need some help.
https://codepen.io/carbondrft/pen/oNerBRr
My wish is that, on scroll, I want logo and nav to disappear and appear from seperate direction.
Logo disappear/appear from the left side, and the menu to disappear/appear from the right,
instead on disappearing/appearing from the top that almost all tutorials shows.
I have added the code to the codepen, and kind of tried out myself with the nav only, but could not have it to work.
If you look at javascript and scroll a bit down, I have added comment from where I need some help.
https://codepen.io/carbondrft/pen/oNerBRr