Logo and nav disapear/appear on scroll, but on x-axis

Nov 24, 2021
Reaction score
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.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question