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


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
 
Ad

Advertisements


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

Top